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);
ListView添加FooterView再remove掉,会留下空白位置
猜你喜欢
转载自blog.csdn.net/u014040795/article/details/52188921
今日推荐
周排行