to top
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>