Why is my listview not scrolling?

后端 未结 4 1550
清酒与你
清酒与你 2021-02-09 12:49


        
4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-09 13:22

    Use a LinearLayout and set the ListView's Height to 0dip and give it layout_weight="1"

    This will make it autofill any remaining space, causing the internal items of the list view to scroll. Currently the listview is very tall and is being clipped by the bounds of the screen.

    Edit

    Something like this:

    
        
        
    
        
    
    
    

提交回复
热议问题