Skip to content

Instantly share code, notes, and snippets.

@d9j
Created April 24, 2015 06:53
Show Gist options
  • Save d9j/09488797ccc6dd888808 to your computer and use it in GitHub Desktop.
Save d9j/09488797ccc6dd888808 to your computer and use it in GitHub Desktop.
SlidingTabLayout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".HomeActivity">
<com.al.unicp.widgets.SlidingTabLayout
android:id="@+id/sliding_tabs"
android:background="@color/theme_primary"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</com.al.unicp.widgets.SlidingTabLayout>
<android.support.v4.view.ViewPager android:id="@+id/pagerFragments"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v4.view.ViewPager>
<TextView
android:text="@string/hello_world"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment