How to change the contents of a list only without changing the list of items

I have a list where each listitem has one image and 4 text views. I only want to change 2 text images without changing the list and list of items. These texts change every second. Is this possible in android?

+3


source to share


1 answer


You can update text items of the listView like this:



private void updateText(int index){
View v = ListView.getChildAt(index);

TextView updatedText = (TextView) v.findViewById(R.id.txt_view);
updatedText .setText("changed Text");

}

      

0


source







All Articles