How to set custom text at any position of List view

I would like to know how to set custom text at different positions of my Listview through setter

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 the ListAdapter, to tell the associated ListView to redraw its contents, reflecting your changed data