您的位置:首页 > 其它

ListView添加FooterView再remove掉,会留下空白位置

2016-08-12 09:50 429 查看
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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: