On Feb 15, 6:56 pm, Mark Murphy <[email protected]> wrote:
> 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

Thanks! Got it working. I think I'm off and running with Android
development.

I may have to pick up your book. Does it cover accessing data over the
network? I'm thinking about exposing a RESTful service and having the
app get its recipe data from that. Also considering having the app get
its recipe data from Google or Amazon storage. Will have to consider
caching recipes locally in case the user is temporarily without
network connectivity. This could get interesting. :)

-- 
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

Reply via email to