[英]Change the text in a listview base adapter
I have a custom baseadapter that i use to populate a listview. 我有一个自定义baseadapter,用于填充列表视图。 each row that populates contains 4 text views in it.
填充的每一行都包含4个文本视图。 How can I change the text of one of these views without having to repopulate a brand new array into the adapter?
如何在不必将全新阵列重新填充到适配器中的情况下更改其中一个视图的文本?
只需将值更改为数组并调用此方法即可
youradapter.notifydatasetchanged()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.