GridView with dynamic number of columns in each row

前端 未结 2 1643
予麋鹿
予麋鹿 2021-01-02 05:36

How can I recreate the following view with the help of a GridView.

\"enter

2条回答
  •  梦毁少年i
    2021-01-02 06:22

    To obtain the layout you see you can use something like this:

    
        
        
    
        
        
    
        
        
    
        
        
    
    
    

    If you want also the paged effect you can use a ViewPager

    http://android-developers.blogspot.it/2011/08/horizontal-view-swiping-with-viewpager.html

提交回复
热议问题