Android Listview show only one item

后端 未结 5 1380
暗喜
暗喜 2020-12-09 01:40

I have a ListView, where i changed appearence of row, but listview have size of one row, instead of fullscreen.

list_item.xml:



        
5条回答
  •  无人及你
    2020-12-09 02:34

    Changing the height dynamically gives NPE most of the times... the best solution is to create a custom list view that is non scrollable. You'll find a lot of codes for that.

提交回复
热议问题