In class, we worked on developing a simple checklist application, as an example of how to tie together listviews, menus, databases, and activities.
Here is the code, as we left it at the end of the class.
In the next class, we will go on with this example.
It would be very useful if each of you looked in more detail at some of these tasks, which we will have to do together:
- For a checklist, it would be nice to have a listview with checkboxes on the left (so one can check items as done), and item names on the right. How can we build an adaptor for a listview that changes the tick state of checkboxes? How can we change the color of each row according to whether it has been done or not (e.g., to gray out slightly the items that have not been done)?
- What do we need in the menus?