In this application, as on the screen there is a button "Add to Favorites" in the custom ListView. Tell me how this can be implemented? I have implemented a custom ListView, where the data is output from the database. There is a column favorites in the database table. Approximately the same custom ListView implemented. But I do not understand how to click on the button to make the selected item selected
- ru.stackoverflow.com/a/559151/177345 - pavlofff
- Maybe you misunderstood me. I was interested in how to enter the info when clicking on the "add to favorites" button in a paragraph in the database. Those. where to register the handler? In the classroom adapter? In the class MainActivity? DB and everything else I have done already - Kolkhoznik
|
