I'm trying to figure out how to emebed a listview in a tabhost
Whenever I call

l1 = (ListView) findViewById(R.id.list);
l1.setAdapter(new ArrayAdapter<String>
(this,android.R.layout.simple_list_item_1, SITES));

it dies a rather unglamorouis death.
List is defined as
<ListView
     android:id="@+id/list"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"/>

I suspect I'm missing something rather obvious as I'm just getting
started with this, but I couldn't find other examples of people having
listviews inside tabcontrols besides the one which suggested as above.
Any suggestions?

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