Guest User

Untitled

a guest
Oct 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. android:id="@+id/coordinatorLayout"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <android.support.design.widget.AppBarLayout
  7. android:id="@+id/appBarLayout"
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content">
  10. <android.support.v7.widget.Toolbar
  11. android:id="@+id/toolbar"
  12. android:layout_width="match_parent"
  13. android:layout_height="?attr/actionBarSize"
  14. android:background="?attr/colorPrimary"
  15. app:layout_scrollFlags="scroll|enterAlways" />
  16. <android.support.design.widget.TabLayout
  17. android:id="@+id/tabLayout"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. app:tabTextColor="@android:color/white"
  21. app:tabSelectedTextColor="@android:color/white"
  22. app:tabIndicatorColor="@android:color/white"
  23. app:tabIndicatorHeight="6dp"/>
  24. </android.support.design.widget.AppBarLayout>
  25. <android.support.v4.view.ViewPager
  26. android:id="@+id/viewPager"
  27. android:layout_width="match_parent"
  28. android:layout_height="match_parent"
  29. app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
  30. </android.support.design.widget.CoordinatorLayout>
  31.  
  32. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
  33. listView.setNestedScrollingEnabled(true);
  34. }
Add Comment
Please, Sign In to add comment