user256239 user256239 - 13 days ago 6
Android Question

Can I embed Tab Layout into other layout?

Can I embed Tab Layout into other layout?

The designed layout is like below:

Root LinearLayout (vertical oritentation)
A ViewLayout
A TextLayout
A Tab layout
A View Layout
A TextLayout


I just want to have tabs in my layout but not the root. Is it possible?

Thanks.

Answer

Yes, it's possible. In your xml you simply put the tabhost wherever you want it. You're having difficulties with the xml?

Comments