Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
SlidingTabsColors / res / layout /

fragment_sample.xml

       
        1
       
       
        <?xml version="1.0" encoding="utf-8"?>
       
       
        2
       
       
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       
       
        3
       
       
        android:layout_width="match_parent"
       
       
        4
       
       
        android:layout_height="match_parent"
       
       
        5
       
       
        android:orientation="vertical">
       
       
        6
       
       
       
       
        7
       
       
        <com.example.android.common.view.SlidingTabLayout
       
       
        8
       
       
        android:id="@+id/sliding_tabs"
       
       
        9
       
       
        android:layout_width="match_parent"
       
       
        10
       
       
        android:layout_height="wrap_content" />
       
       
        11
       
       
       
       
        12
       
       
        <android.support.v4.view.ViewPager
       
       
        13
       
       
        android:id="@+id/viewpager"
       
       
        14
       
       
        android:layout_width="match_parent"
       
       
        15
       
       
        android:layout_height="0px"
       
       
        16
       
       
        android:layout_weight="1"
       
       
        17
       
       
        android:background="@android:color/white" />
       
       
        18
       
       
       
       
        19
       
       
        </LinearLayout>