Android在列表视图中添加视图 [英] Android add view in listview
本文介绍了Android在列表视图中添加视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
文档中说,不支持listViewObj.addView()方法。我想补充欣赏到列表的末尾而无需刷新它。这可怎么办呢?
Documentation says listViewObj.addView() method is not supported. I want to add view to the end of the list without refreshing it. How this can be done?
推荐答案
您可以页脚通过添加到ListView,
You can add a footer to the ListView by,
View footerView = getLayoutInflater().inflate(R.layout.footer_layout, null);
listview.addFooterView(footerView);
这篇关于Android在列表视图中添加视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文