I use SQLite for my app.
I have a row "Homework" in my db and a row "Homework done". I also have a row "Test".
When I create a "Note", I can define if it's a homework or a test (with radiobutton). Then I display the date I choose and the title of that note.
I'd like to add a CheckBox to my listView if I selected the Homework's radioButton.
I think I have to create a CustomAdapter.. But how can I add the checkBox only for the homework's row ? Can you give me an example and I'll adapt it to my code ?
I have a method to update the value of the row Homework done. I must to it in the bindView of my CustomAdapter right ?
Thank you for you explanations !
Aucun commentaire:
Enregistrer un commentaire