Android save Checkbox State in ListView with Cursor Adapter

后端 未结 5 1936
忘掉有多难
忘掉有多难 2020-11-27 19:48

I cant find a way to save the checkbox state when using a Cursor adapter. Everything else works fine but if i click on a checkbox it is repeated when it is recycled. Ive see

5条回答
  •  攒了一身酷
    2020-11-27 20:20

    1. CheckBox Open “res/layout/main.xml” file, add 3 “CheckBox” and a button, inside the LinearLayout.

    File : res/layout/main.xml

    
    
    
        
    
        
    
        
    
        

提交回复
热议问题