Skip to content

Most visited

Recently visited

navigation
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>
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.