2015-04-01 75 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