ponkin wrote:
> Hello,
>
> If I understood you well just
> try the following:
>
> inside you TabActivity.onCreate()
>
> call
>
> final TabHost mTabHost = getTabHost();
> mTabHost.addTab(mTabHost.newTabSpec("tab_test2").setIndicator("Tab
> with ListView").setContent(ne Intent
> ("INTENT_THAT_FIRE_UP_YOULIST_ACTIVITY"));
>
> and don`t forget to declare your ListActivity to handle
> "INTENT_THAT_FIRE_UP_YOULIST_ACTIVITY" inside AndroidManifest.xml
Or, you could just put a ListView in the FrameLayout and add it as a the
content of a tab, without having all of the extra code and runtime
overhead of a second activity.
http://github.com/commonsguy/cw-andtutorials/tree/master/06-Tabs/
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Training in US: 8-12 February 2010: http://bignerdranch.com
--
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