I didn't think about going that way... shame on me :( Thank you!
2011/4/26 Kostya Vasilyev <[email protected]> > Don't use SimpleListAdapter. It's really too "Simple" for most cases. > > Take a look at ArrayAdapter instead, it's one small step towards more > flexibility, or subclass directly from BaseAdapter. > > The main method you should be familiar with is getView() which ListView > uses to populate itself with visible items. > > > http://developer.android.com/reference/android/widget/Adapter.html#getView(int, > android.view.View, android.view.ViewGroup) > > -- Kostya > > 26.04.2011 14:57, luiX_ пишет: > > >> Ok, now I'm putting an ActivityList for showing and managing my shopping >> list with a custom layout for showing FoodItem's data. The simplest way I've >> found to load list is using a SimpleListAdapter, which needs to receive a >> Map containing the fields of the FoodItem I want to show in the list, >> then... what's the best option? Having a method like "toMap" in my FoodItem >> class and, consequently another similar method "toMapsList" in my >> ShoppingList class to translate my list of objects to a list of Maps? or is >> there any other option? >> > > > -- > Kostya Vasilyev -- http://kmansoft.wordpress.com > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

