【问题标题】:Double tabbed layout双标签布局
【发布时间】:2016-02-15 10:56:37
【问题描述】:

我已经尝试了两天来管理双标签布局。是否有可能做到这一点?像这样 ?

【问题讨论】:

    标签: android android-layout tabbed tabbed-view


    【解决方案1】:

    你可以使用android.support.design.widget.TabLayout来做到这一点

    顶部选项卡使其像固定一样

        <android.support.design.widget.TabLayout
            android:id="@+id/tabs"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:tabMode="fixed" 
            app:tabGravity="fill"/>
    

    和内部标签

      <android.support.design.widget.TabLayout
                android:id="@+id/tabs"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                app:tabMode="scrollable" 
                app:tabGravity="fill"/>
    

    See Good tutorial for TabLayout

    【讨论】:

    • 你能给我更多关于内部标签的解释吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多