Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. xmlns:attrs="http://schemas.android.com/tools">
  8.  
  9. <android.support.design.widget.AppBarLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  13.  
  14. <android.support.v7.widget.Toolbar
  15. android:id="@+id/toolbar_parent"
  16. android:layout_width="match_parent"
  17. android:layout_height="40dp"
  18. android:background="@color/colorPrimary"
  19. app:layout_scrollFlags="scroll|enterAlways"
  20. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" >
  21.  
  22. <TextView
  23. android:id="@+id/test1"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_gravity="center"
  27. android:text="Test1"
  28. android:textSize="20sp"/>
  29.  
  30. </android.support.v7.widget.Toolbar>
  31.  
  32. <android.support.design.widget.TabLayout
  33. android:id="@+id/tabs1"
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. app:tabGravity="fill"
  37. app:tabMode="fixed" />
  38.  
  39. </android.support.design.widget.AppBarLayout>
  40.  
  41. <android.support.v4.view.ViewPager
  42. android:id="@+id/viewpager"
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
  46.  
  47. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement