On Thu, Feb 18, 2010 at 3:42 PM, Dan <[email protected]> wrote:
> I'm just not sure how to add the > category dividers to my listview? > You could make each category and all it's contents a single view, thus making each category group the view you show in the list. So you'd have a category header layout, an individual movie layout, and a custom view that's the group of the category with a list of movies under it. That would be what you show in your list. Or you could use an ExpandableListView, which would simplify the whole process and allow you to collapse the groups by category. See my similar post in this thread<http://groups.google.com/group/android-developers/msg/7d1d3663f705c380> . On Fri, Feb 19, 2010 at 12:08 PM, Nick Owens <[email protected]> wrote: > I choose to get away from the XML and build my layouts > programmatically. > Why? In your example you could easily inflate an xml-defined linearlayout that already had the sub heading text view in it. Then you would just have to find the text view by id and set the text on it. All other properties could be edited in XML without touching that code. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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

