Get Selected Item Using Checkbox in Listview

前端 未结 9 697
醉酒成梦
醉酒成梦 2020-11-22 09:36

I am creating an Android application where I have a ListView that displays all of the applications that were installed in my mobile phone.

My ListView is customized,

9条回答
  •  抹茶落季
    2020-11-22 09:56

    I had similar problem. Provided xml sample is put as single ListViewItem, and i couldn't click on Item itself, but checkbox was workng.

    
        
        
        
    
    
    

    Solution: add attribute

    android:focusable="false"
    

    to CheckBox control.

提交回复
热议问题