Android Listview show only one item

后端 未结 5 1381
暗喜
暗喜 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 02:21

    In list_item.xml's parent LinearLayout, you are using android:layout_height="fill_parent" Obviously it is going to expand vertically.

    OR:

    use monitor tool, go to hierarchy viewer, inspect the running Layout in detail. Find the View with problem, check its attributes/properties are correct, move to its parent View and check it, until you find the issue.

提交回复
热议问题