0

In my game application am using a listview to select levels. Am activating this listview item onclickable if the previous level is cleared. I need to differentiate the activated and unactivated level's in listview.How can i make it possible? If possible suggest me tutorial. Thank you

machu
  • 111
  • 2
  • 11

2 Answers2

1

you can put your logic for activated and unactivated levels in getView method ,check if activated then inflated activated row otherwisw unactivated row.

Samir Mangroliya
  • 39,918
  • 16
  • 117
  • 134
0

First check this and this stackoverflow questions and try some code and post your question if you have any problems. Please try first.

You can use setClickable(false) to disable touch events on list. To make it look disabled, you can change the textView colors in the list items and get such effects.

Thanks

Community
  • 1
  • 1
Wesley
  • 1,808
  • 5
  • 31
  • 46