Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. 1) In my main activity am using Observable scrollview.
  2.  
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:id="@+id/kudix_cordinator"
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content">
  9.  
  10. <android.support.design.widget.AppBarLayout
  11. android:id="@+id/appbar"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:background="?attr/colorPrimary"
  15. android:fitsSystemWindows="false"
  16. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  17. app:layout_collapseMode="pin">
  18.  
  19. <android.support.design.widget.CollapsingToolbarLayout
  20. android:id="@+id/htab_collapse_toolbar"
  21. android:layout_width="match_parent"
  22. android:layout_height="250dp"
  23. android:layout_marginBottom="0dp"
  24. app:contentScrim="?attr/colorPrimary"
  25. app:titleEnabled="false">
  26.  
  27. <ImageView
  28.  
  29. android:layout_width="match_parent"
  30. android:layout_height="@dimen/parallax_image_height"
  31. android:background="@drawable/ic_launcher"
  32. android:fitsSystemWindows="true"
  33. android:scaleType="centerCrop"
  34. app:layout_collapseMode="parallax" />
  35.  
  36. <android.support.design.widget.TabLayout
  37. android:id="@+id/kudix_club_tabs"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_gravity="bottom"
  41. app:tabIndicatorColor="@android:color/white"
  42. app:tabSelectedTextColor="@android:color/white"
  43. app:tabTextColor="@color/white" />
  44.  
  45. </android.support.design.widget.CollapsingToolbarLayout>
  46.  
  47. </android.support.design.widget.AppBarLayout>
  48.  
  49.  
  50. <android.support.v4.view.ViewPager
  51. android:id="@+id/kudix_club_viewpager"
  52. android:layout_width="match_parent"
  53. android:layout_height="match_parent"
  54. android:layout_marginBottom="10dp"
  55. android:layout_marginLeft="15dp"
  56. android:layout_marginRight="15dp"
  57. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  58. />
  59. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement