Custom ArrayAdapter setBackground in getView

前端 未结 3 1207
梦毁少年i
梦毁少年i 2021-01-03 02:46

I\'m working on a ListActivity which will display a bunch of numbers (weights). I would like to change the background of a specific row in the ListView. To do this I have cr

3条回答
  •  再見小時候
    2021-01-03 03:19

    If it's due to reuse, why don't you add another check for if itemWeight not equal to 20? If not equal, then set the background back to normal.

提交回复
热议问题