Android set View.GONE does not “release” space in listview

前端 未结 7 531
[愿得一人]
[愿得一人] 2021-01-18 11:01

I have a listview with some items that can be marked as \"done\". There is also a togglebutton that says \"hide done items\".

However, when I do hide the items by s

7条回答
  •  有刺的猬
    2021-01-18 11:53

    Changing the android:layout_height="wrap_content" to android:layout_height="fill_parent" fixed the issue.. was testing with a long list.. with a short list the same space was above the list.. Stupid mistake..

    Thanks all for help.. everything is working now.

提交回复
热议问题