ListView listView = new ListView(this);
View footerView = new View(this);
//添加footerView
LinearLayout footerParent = new LinearLayout(this);
footerParent.addView(footerView);
listView.addFooterView(footerParent);
//移除footerView
footerView.setVisibility(View.GONE);
【Android】ListView添加FooterView再remove掉,会留下空白位置
最新推荐文章于 2021-06-04 18:19:48 发布