Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:id="@+id/activity_main"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical"
  8. tools:context="com.example.ansh.customizingtab.MainActivity">
  9.  
  10.  
  11. <android.support.design.widget.TabLayout
  12. android:layout_height="wrap_content"
  13. android:layout_width="match_parent"
  14. android:id="@+id/tabLayout"
  15. app:tabMode="scrollable"
  16. app:tabGravity="fill"
  17. android:layout_margin="10dp"
  18. app:tabPaddingStart="8dp"
  19. app:tabPaddingEnd="8dp"
  20. app:tabBackground="@drawable/background_tab">
  21. </android.support.design.widget.TabLayout>
  22.  
  23.  
  24. <com.example.ansh.customizingtab.CustomViewPager
  25. android:id="@+id/viewpager"
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent"
  28. android:background="@android:color/white"
  29. app:layout_behavior="@string/appbar_scrolling_view_behavior" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement