开发者

Tab layout inside Tab layout

i have develop 开发者_C百科one application in which tab layout in main file now i would like to set tablayout inside 2nd number tab,so what thing can i do? help me.

its "tab inside tab"


I think you want to give sub-options while clicking on 2nd tab button. For that, why dont you create layout with 2-3 options as you wants. And make it visible/invisible based on the 2nd button's click.

You can make visible/invisible any view by using setVisibility(View.VISIBLE) and setVisibility(View.GONE) method.


I suppose you can't embed a TabHost inside another TabHost. You can do what @Paresh said. Implement your own view switching. If you want an entire Activity embedded - take a look at ActivityGroup or the Fragments framework which you can use through the Compatibility Framework. Good luck.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜