[英]How to integrate tabs inside a layout?
I would like to use the component tabs Android but within a layout. 我想在布局内使用Android的组件标签。 In fact, I would like the tabs is not sticking to my action bar in order to display information between.
实际上,我希望这些标签不粘在我的操作栏上以显示它们之间的信息。
Here is an example image of what I would get: 这是我会得到的示例图像:
You can add tabs inside a FragmentTabHost 您可以在FragmentTabHost内添加选项卡
Here is a tutorial implementing this 这是实现此目的的教程
http://www.betteropts.com/fragmenttabhost-tutorial-using-fragment-as-tab-content-and-keep-navigation-history-for-each-tab/ http://www.betteropts.com/fragmenttabhost-tutorial-using-fragment-as-tab-content-and-keep-navigation-history-for-each-tab/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.