Deselect selected item in ListView

后端 未结 8 757
天命终不由人
天命终不由人 2020-12-18 20:29

I use a ListView in my layout like this:

 

        
相关标签:
8条回答
  • 2020-12-18 20:51

    Your selector resource seems to be wrong here. You should use a drawable with transparent background, and i think this is what actually colors your rows, but not choiceMode of the ListView. Please check this another answer for more details.

    0 讨论(0)
  • 2020-12-18 20:55

    For me it worked with:

    listView.setAdapter(myAdapter);
    
    0 讨论(0)
提交回复
热议问题