From 4.0 to 4.3 - Keeping Book Up-to-date
Hi. This is my 2nd Android book. The first one was the Nerd Ranch one, which was written more recently and jives with what I am seeing in Eclipse with the latest API.
So far, I have not encountered anything in this book that is too different to easily adapt to. For example, in chapter 4 "Modifying Existing Views" you say to create the dimens.xml file, but it is already there, and I just added the new item to the existing file.
I also see different ways of doing things. You have the TodoActivity control the adapter being used by TodoFragment.
The Big Nerd Ranch way was to let the ListFragment control its adapter. And for customizing the appearance of items in the ListFragment, they create an inner class that overrides ArrayAdapter and overrides the method:
public View getView()
to customize the appearance of each item as it is drawn.
Is this just two ways to do the same thing? Or is their way better (or a newer preferred way) of doing it?
I do really enjoy seeing other ways of doing something. It helps me understand things better.
The main point of my 1st post is - The book is slightly out of date with some things. If there is a newer and better way to do something, have the authors done anything to make this information available to us?