Wednesday, May 19, 2010

[android-developers] Re: Can I create Tabs from Activity

Yes.. Thanks a lot pskink.. you again...

Nithin

On May 19, 12:36 pm, skink <psk...@gmail.com> wrote:
> On May 19, 4:48 am, Nithin <nithin.war...@gmail.com> wrote:
>
> > Got it..
>
> > TabHost tabHost = new TabHost(SampleTab.this);
> > TabWidget tabW = new TabWidget(this);
> > FrameLayout frame = new FrameLayout(this);
> > frame.setId(android.R.id.tabcontent);
> > tabW.addView(frame);
> > tabW.setId(android.R.id.tabs);
> > tabHost.addView(tabW);
>
> all above can be defined in xml layout file
>
> pskink
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate