Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 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:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:fitsSystemWindows="true">
  6.  
  7. <android.support.design.widget.AppBarLayout
  8. android:id="@+id/appbar"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:fitsSystemWindows="true"
  12. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  13.  
  14. <android.support.design.widget.CollapsingToolbarLayout
  15. android:id="@+id/collapsing_toolbar"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:fitsSystemWindows="true"
  19. app:contentScrim="?attr/colorPrimary"
  20. app:expandedTitleMarginBottom="32dp"
  21. app:expandedTitleMarginEnd="64dp"
  22. app:expandedTitleMarginStart="48dp"
  23. app:layout_scrollFlags="scroll|enterAlways">
  24.  
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:layout_gravity="center_vertical"
  29. android:fitsSystemWindows="true"
  30. android:orientation="vertical"
  31. android:padding="8dp"
  32. app:layout_collapseMode="parallax">
  33.  
  34. <TextView
  35. android:id="@+id/lblTopArtist"
  36. android:layout_width="fill_parent"
  37. android:layout_height="wrap_content"
  38. android:gravity="center_horizontal"
  39. android:paddingLeft="8dp"
  40. android:text="Top Artists"
  41. android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
  42.  
  43. <LinearLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="230dp"
  46. android:layout_gravity="center_vertical"
  47. android:orientation="vertical"
  48. android:paddingBottom="8dp"
  49. android:paddingTop="8dp">
  50.  
  51. <android.support.v7.widget.RecyclerView
  52. android:id="@+id/recyclerViewTopArtists"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content" />
  55.  
  56. </LinearLayout>
  57.  
  58. </LinearLayout>
  59.  
  60. </android.support.design.widget.CollapsingToolbarLayout>
  61.  
  62. <View
  63. android:layout_width="match_parent"
  64. android:layout_height="0.2dp"
  65. android:background="@android:color/transparent" />
  66.  
  67. </android.support.design.widget.AppBarLayout>
  68.  
  69. <LinearLayout
  70. android:layout_width="match_parent"
  71. android:layout_height="match_parent"
  72. android:orientation="vertical"
  73. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  74.  
  75. <android.support.design.widget.TabLayout
  76. android:id="@+id/tabLayout"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:background="@color/colorPrimary"
  80. android:fitsSystemWindows="true"
  81. android:gravity="bottom"
  82. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  83. app:layout_scrollFlags="scroll"
  84. app:tabGravity="center"
  85. app:tabIndicatorColor="@color/colorAccent"
  86. app:tabIndicatorHeight="4dp"
  87. app:tabMode="fixed" />
  88.  
  89. <android.support.v4.view.ViewPager
  90. android:id="@+id/viewPager"
  91. android:layout_width="match_parent"
  92. android:layout_height="match_parent" />
  93.  
  94. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement