I tried to understand why there are multiple list adapters, I think
the answer is my other objective is for the list views to change with
click of the 4 buttons on the top. I do have the text views defined in
the xml file but I can't seem to understand how is that I can have a
string declared like I have Android phone 1, 2, 3 etc and display it
in the second line of this text view. Thanks

On Oct 5, 4:51 pm, TreKing <[email protected]> wrote:
> On Tue, Oct 5, 2010 at 6:43 PM, Varun Khanduja <[email protected]>wrote:
>
> > I am trying to make a list view with two rows and two columns in each
> > element of the list view. The code I have so far I am trying to achieve the
> > first task i.e. two rows inside a single list view item.
>
> OK, so far so good.
>
> > I saw some online tutorial, and I formed a text view which I inflated in
> > the java file. It works but it's not exactly what i want, I guess instead of
> > the last digit which is displayed presently in the list view, I would like
> > to know how to hard code text 1, text 2, text 3 etc.These text 1 , 2, 3 are
> > basically locations. Is my description comprehensible?
>
> You lost me here.
>
> However, if you want the first part, one element of the list view with two
> lines, then you only really need one adapter (you seem to have multiple in
> your code) which returns a layout (probably linear in this simple case)
> containing the two text views in question. Once you have that working, it's
> just a matter of updating that same layout to have four text views instead
> of two.
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

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