I want to have tabs using XML and Views at the same time
i.e.
To have an XML describing all the tabs, and I add tabs like that

tabs.addTab(tabs.newTabSpec("First Tab")
                .setIndicator("First Tab")
                .setContent(R.id.tab1));

tabs.addTab(tabs.newTabSpec("Second Tab")
                .setIndicator("Second Tab")
                .setContent(R.id.tab2));

So, how the XML should look?  I need the content of each tab to be
LinearLayout, how to do that?

Thank you.


On Dec 25, 3:51 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> diya blore wrote:
> >  Can i implement this in single activity.?
>
> Yes.
>
> > As above process code has two avtivity.. can it be in single activity?
> > is it possible?
>
> Yes.
>
> Instead of an Intent, give the tab a View.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to