[英]How to implement iOS 7 style top tab bar or navigation bar on Android?
[英]How to Implement top and bottom tab bar in android
實現頂部和底部標簽欄的最簡單方法是什么,我進行了很多搜索。有人可以幫助我找出答案嗎?
如果要創建可交換的標簽欄,請在以下鏈接上使用示例:1。
1. http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ 2. 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"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.