android listview display all available items without scroll with static header

前端 未结 12 679
一生所求
一生所求 2020-12-02 10:12

I\'m having a little difficulties while trying to get a certain layout to work: I want to have list. List does not have to be scrollable, but should be shown completely. But

12条回答
  •  余生分开走
    2020-12-02 10:33

    Check this out:

    ListView ignoring wrap_content

    Using android:layout_height and android:layout_weight solved it for me:

    
    

提交回复
热议问题