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

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