Android Listview show only one item

后端 未结 5 1378
暗喜
暗喜 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:12

    I Found mistake. tab_news was in ScrollView of TabHost. So stupid mistake( Thanks for help.

    Update:ListView must not be underScrollView in xml. If it is,the same problem occurs.

    Update 2 :You may use NestedScrollView

提交回复
热议问题