I finally finished reading an Android book. I took it slowly, but i did nearly every example in the book. Got a bit of good practice. But all the practice is in following instructions. The though of doing my own project almost scares me! Well, not really, but maybe you know what i mean. I'm not even sure what to do.
For my first project, i found a simple one. I want to create a checklist for my mother to use on her Kindle Fire. I have no idea if she'll actually use it (either of them ) but, it's a simple project nonetheless.
Right now, she prints up the checklist and follows through for a certain set of once-a-week chores. I see the steps as follows:
Add hardcoded, scrollable (if needed) list with checkboxes to show what is done.
Add button to clear the list.
Allow some for of dynamic list saved between sessions.
I'm guessing the way to start it to use an Empty Activity, with API 8, because its not too advanced, so go with the lower API. It starts with a RelativeLayout, which is ok, and just remove the default TextView. The next part has me wondering. How do i get a scrollable list with checkboxes?
Because of the checkbox, it was not as simple as i thought, and although there are plenty of checklist tutorials out there, many just seemed too complicated. Though, i just found a simple tutorial which doesn't explain much, but does get me to understand the basics.
Two details that got me when i went too quickly through it are: the java file should extend ListActivity and the listview needs to be called android:list. Anyway, i now have a working checklist with hardcoded items. Next is to add a button to clear the list.
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
Thread Boost - a very different sort of advertising