-2

I have tried various methods but none of them is working, what i what is changing the background image of cell of listview for this i have different images for cell. The content remain same. This is what i have tried yet.

    CountryList.post(new Runnable(){
        public void run() {
             CountryList.invalidateViews();    
        } 
    });  

// and this one also.

   runOnUiThread(new Runnable() {
        public void run() {
             CountryList.invalidateViews(); 
         }
    });

As i dont content to be reloaded.

enter image description here

Programmer
  • 5,360
  • 10
  • 37
  • 61

1 Answers1

1

For this you can iterate over child components of list-view and get background of each one of them and change their background, for example get child at and so on.

IMCoder
  • 231
  • 3
  • 5