繁体   English   中英

如何在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"

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM