erturne wrote: > Let's say I create a recipe_list_item_layout.xml file containing > something like: > > <?xml version="1.0" encoding="UTF-8" ?> > <TableLayout xmlns:android="..."> > <TableRow> > <TextView android:id="@+id/title_text" /> > </TableRow> > ... > </TableLayout> > > What would I do in my adapter's getView() method to return an instance > of TableLayout that uses this XML with the title set in the TextView? > Sorry, but I'm just a bit lost here!
Well, I'll point you to this free excerpt from one of my books: http://commonsware.com/Android/excerpt.pdf The excerpt covers all of that and more. In a nutshell, you inflate the layout using a LayoutInflater, which gives you your TableLayout. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- 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

