Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.90 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:id="@+id/activity_cat">
  6.  
  7. <android.support.design.widget.AppBarLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="184dp"
  10. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  11.  
  12. <android.support.design.widget.CollapsingToolbarLayout
  13. android:id="@+id/collapsing_toolbar"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. app:contentScrim="?attr/colorPrimary"
  17. app:layout_scrollFlags="scroll|exitUntilCollapsed"
  18. app:expandedTitleGravity="bottom|center">
  19.  
  20. <ImageView
  21. android:layout_width="match_parent"
  22. android:layout_height="105dp"
  23. app:srcCompat="@drawable/ic_launcher"
  24. android:id="@+id/profile_id" />
  25.  
  26. <android.support.v7.widget.Toolbar
  27. android:id="@+id/toolbar"
  28. android:layout_width="match_parent"
  29. android:layout_height="?attr/actionBarSize"
  30. app:layout_collapseMode="pin" />
  31.  
  32. </android.support.design.widget.CollapsingToolbarLayout>
  33.  
  34. </android.support.design.widget.AppBarLayout>
  35.  
  36. <android.support.v4.widget.NestedScrollView
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:background="#f4f4f4"
  40. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  41.  
  42. <LinearLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="match_parent"
  45. android:orientation="vertical">
  46.  
  47. <View
  48. android:background="@drawable/degradado"
  49. android:id="@+id/separador1"
  50. android:layout_width="fill_parent"
  51. android:layout_height="18dp"
  52. android:layout_gravity="start" />
  53.  
  54. <ListView
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. android:id="@+id/listview_tab"
  58. android:layout_alignParentRight="true"
  59. android:layout_alignParentEnd="true"
  60. android:layout_alignParentTop="true"
  61. android:divider="@drawable/list_divider"/>
  62.  
  63. </LinearLayout>
  64.  
  65.  
  66. </android.support.v4.widget.NestedScrollView>
  67.  
  68. </android.support.design.widget.CoordinatorLayout>
  69.  
  70. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  71. xmlns:app="http://schemas.android.com/apk/res-auto"
  72. android:layout_width="match_parent"
  73. android:layout_height="match_parent"
  74. android:id="@+id/activity_cat">
  75.  
  76. <android.support.design.widget.AppBarLayout
  77. android:layout_width="match_parent"
  78. android:layout_height="184dp"
  79. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  80.  
  81. <android.support.design.widget.CollapsingToolbarLayout
  82. android:id="@+id/collapsing_toolbar"
  83. android:layout_width="match_parent"
  84. android:layout_height="match_parent"
  85. app:contentScrim="?attr/colorPrimary"
  86. app:layout_scrollFlags="scroll|exitUntilCollapsed"
  87. app:expandedTitleGravity="bottom|center">
  88.  
  89. <ImageView
  90. android:layout_width="match_parent"
  91. android:layout_height="105dp"
  92. app:srcCompat="@drawable/ic_launcher"
  93. android:id="@+id/profile_id" />
  94.  
  95. <android.support.v7.widget.Toolbar
  96. android:id="@+id/toolbar"
  97. android:layout_width="match_parent"
  98. android:layout_height="?attr/actionBarSize"
  99. app:layout_collapseMode="pin" />
  100.  
  101. </android.support.design.widget.CollapsingToolbarLayout>
  102.  
  103. </android.support.design.widget.AppBarLayout>
  104.  
  105.  
  106. <LinearLayout
  107. android:layout_width="match_parent"
  108. android:layout_height="match_parent"
  109. android:orientation="vertical">
  110.  
  111. <View
  112. android:background="@drawable/degradado"
  113. android:id="@+id/separador1"
  114. android:layout_width="fill_parent"
  115. android:layout_height="18dp"
  116. android:layout_gravity="start" />
  117.  
  118. <ListView
  119. android:layout_width="match_parent"
  120. android:layout_height="match_parent"
  121. android:id="@+id/listview_tab"
  122. android:layout_alignParentRight="true"
  123. android:layout_alignParentEnd="true"
  124. android:layout_alignParentTop="true"
  125. android:divider="@drawable/list_divider"/>
  126.  
  127. </LinearLayout>
  128. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement