Double tabbed layout

1.1k views Asked by At

I've been trying for two days to manage double tabbed layout. Is it possible to do this? Like this ? enter image description here

1

There are 1 answers

1
N J On

You can do that by using android.support.design.widget.TabLayout

Top Tab make it fixed like

    <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"/>

and inner tab

  <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