Hide footer view in ListView?

前端 未结 13 2106
既然无缘
既然无缘 2020-12-02 06:49

I have a ListView. The data behind it is fetched from the Internet, in sets of 10-30 items whenever the user scrolls all the way to the bottom. In order to indi

13条回答
  •  自闭症患者
    2020-12-02 06:54

    It should be a bug of Android.

    You don't need to remove or add footer view dynamically. You just need to create an unspecified height parent Layout (either inflate it from an xml file or create it programatically) and then add your view which you want to hide or show into it.

    And you can set the view, but NOT the parent Layout, to VISIBLE or GONE or something else now. It works for me.

提交回复
热议问题