Hi, Can i implement this in single activity.? As above process code has two avtivity.. can it be in single activity? is it possible?
On 12/24/08, Eric Chan <[email protected]> wrote: > public class MyTabActivityextends TabActivity > { > @Override > protected void onCreate(Bundle savedInstanceState) > { > super.onCreate(savedInstanceState); > > TabHost tabs =getTabHost(); > > tabs.addTab(tabs.newTabSpec("First Tab") > .setIndicator("First Tab") > .setContent(new Intent(this, FirstTab.class))); > > tabs.addTab(tabs.newTabSpec("Second Tab") > .setIndicator("Second Tab") > .setContent(new Intent(this, SecondTab.class))); > > } > > > } > > > 2008/12/23 diya blore <[email protected]> > >> Hi. >> I want to implement tabs without using xml.. >> Please can any one guide me. >> >> >> -- >> Thank's in adv. >> Diya :) >> >> > >> > > > -- > Best Regards > > Eric Chan > > > > -- Thank's in adv: Diya :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

