2015-04-01 83 views
0

什么是实现顶部和底部的标签栏的最简单的方法,我搜索一个lot.can任何人帮我找出如何实现机器人

+0

阅读关于工具栏。 – 2015-04-01 06:42:00

回答

1

如果你想创建交换,能够顶部和底部的标签栏标签栏,那么请使用样品上下面的链接: 1.

1. http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ 2. http://javapapers.com/android/android-tab-layout-with-swipe-views/ 3. https://github.com/JakeWharton/ViewPagerIndicator

为底部,使用第三链接:

<com.viewpagerindicator.TitlePageIndicator 
    android:id="@+id/titles" 
    android:layout_height="wrap_content" 
    android:layout_width="fill_parent" /> 

的底部视图。

有关以下链接非交换,能够使用示例:

http://www.survivingwithandroid.com/2013/06/android-action-bar-with-tab.html http://javapapers.com/android/android-tab-layout-tutorial/ 如果你想创建底部标签栏,然后使用:

android:layout_alignParentBottom="true" 

请使用示例: http://envyandroid.com/align-tabhost-at-bottom/

+0

需要顶部和底部的标签栏.... – jinnings 2015-04-01 07:00:23

+0

我有更新我的答案,请检查它。 – Yogendra 2015-04-01 07:14:20

+0

如何在一个布局中添加两个标签主机 – jinnings 2015-04-01 08:41:21