There is more space than I need in ListView

前端 未结 5 1146
生来不讨喜
生来不讨喜 2021-01-19 19:56

I\'m using StackLayout and ListView to show some part of a view, but the ListView takes more space than I need, and leaves a blank space between the last row of the list and

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-19 20:27

    Sample layout shows that, you are using ListView inside the ScrollView and ListView have child in different height (HasUnevenRows="True")

    
         
         
    
    

    This cause a blank space between the last row of the list and ScrollView.

    Since you are already added scroll view as root. You can use StackLayout (BindableLayout) for the same purpose.

    
        
            
                
                    
                
            
        
    
    

提交回复
热议问题