How to adjust size of Horizontal ListView in Xamarin.Forms?

前端 未结 2 1556
面向向阳花
面向向阳花 2021-01-22 19:14

I see this entry and try it, yes, scroll orientation becomes horizontal.

But, size of view is not adjust to view\'s outline.

Result is like these:

2条回答
  •  野的像风
    2021-01-22 20:03

    You can use a relative layout to adjust the position. This is a XAML example of a horizontal list view I implemented using a rotated vertical list view:

    
    
        
            
                
                    
                        
                            
                                
                                    
                            
                        
                    
                
                
                    
                
            
        
    
    

    This should work on iOS and Android.

提交回复
热议问题