How to set custom text at any position of List view
from the CommonsWare Community archivesAt January 10, 2020, 6:39pm, Pvr asked:
I would like to know how to set custom text at different positions of my Listview through setter
At January 10, 2020, 11:01pm, mmurphy replied:
That is not how you update a ListView
. Instead, you:
- Ensure that your
ListAdapter
has the latest data and knows how to render your rows (“custom text at different positions”) - Call
notifyDataSetChanged()
on theListAdapter
, to tell the associatedListView
to redraw its contents, reflecting your changed data