Guest User

Untitled

a guest
Sep 29th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.01 KB | None | 0 0
  1. <RelativeLayout 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:background="#E8E8E8"
  6. >
  7.  
  8. <com.example.daysheft.dpc.Header
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:id="@+id/homeactivity_headerView" />
  12. <com.example.daysheft.dpc.Footer
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:layout_alignParentBottom="true"
  16. android:id="@+id/homeactivity_footerView" />
  17.  
  18.  
  19. <ScrollView
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:fillViewport="true"
  23. android:layout_above="@+id/homeactivity_footerView"
  24. android:layout_below="@+id/homeactivity_headerView"
  25. >
  26.  
  27. <LinearLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="match_parent"
  30. android:orientation="vertical"
  31. >
  32.  
  33. <android.support.v7.widget.CardView
  34. android:id="@+id/card1x"
  35. android:layout_marginLeft="10dp"
  36. android:layout_marginRight="10dp"
  37. android:layout_marginTop="5dp"
  38. app:cardCornerRadius="10dp"
  39. android:layout_width="match_parent"
  40. android:layout_height="150dp">
  41.  
  42. <ImageView
  43.  
  44. android:src="@drawable/banner"
  45. android:layout_width="match_parent"
  46. android:layout_height="150dp"
  47. android:id="@+id/homeactivity_banner"/>
  48.  
  49. </android.support.v7.widget.CardView>
  50.  
  51. <LinearLayout
  52. android:layout_width="match_parent"
  53. android:layout_height="wrap_content"
  54. android:weightSum="3"
  55.  
  56. android:background="@android:color/white"
  57. android:layout_marginTop="5dp"
  58. >
  59. <LinearLayout
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_weight="1"
  63. android:orientation="vertical"
  64. >
  65.  
  66. <ImageView
  67. android:layout_width="20dp"
  68. android:layout_height="20dp"
  69. android:src="@drawable/satisfaction"
  70. android:layout_gravity="center_horizontal"
  71. android:layout_marginTop="5dp"
  72. />
  73. <TextView
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text=" Satisfaction\n100% Guaranteed"
  77. android:layout_gravity="center_horizontal"
  78.  
  79. android:textSize="12dp"
  80.  
  81. />
  82. </LinearLayout>
  83. <LinearLayout
  84. android:layout_width="wrap_content"
  85. android:layout_height="wrap_content"
  86. android:layout_weight="1"
  87. android:orientation="vertical"
  88. >
  89.  
  90. <ImageView
  91. android:layout_width="20dp"
  92. android:layout_height="20dp"
  93. android:src="@drawable/shipping"
  94. android:layout_gravity="center_horizontal"
  95. android:layout_marginTop="5dp"
  96. />
  97. <TextView
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:text="Free shipping\non all orders"
  101. android:layout_gravity="center_horizontal"
  102.  
  103. android:textSize="12dp"
  104.  
  105. />
  106. </LinearLayout>
  107. <LinearLayout
  108. android:layout_width="wrap_content"
  109. android:layout_height="wrap_content"
  110. android:layout_weight="1"
  111. android:orientation="vertical"
  112. >
  113.  
  114. <ImageView
  115. android:layout_width="20dp"
  116. android:layout_height="20dp"
  117. android:src="@drawable/returns"
  118. android:layout_gravity="center_horizontal"
  119. android:layout_marginTop="5dp"
  120. />
  121. <TextView
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:text=" Hassle-Free\n Return and Refund"
  125. android:layout_gravity="center_horizontal"
  126.  
  127. />
  128. </LinearLayout>
  129.  
  130.  
  131. </LinearLayout>
  132.  
  133. <android.support.v7.widget.CardView
  134. android:id="@+id/homeactivity_autodel"
  135. android:layout_marginLeft="10dp"
  136. android:layout_marginRight="10dp"
  137. android:layout_marginTop="10dp"
  138. android:layout_width="match_parent"
  139.  
  140.  
  141.  
  142. android:layout_height="wrap_content">
  143. <RelativeLayout
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:padding="8dp"
  147. >
  148.  
  149. <ImageView
  150. android:layout_width="35dp"
  151. android:layout_height="35dp"
  152. android:src="@drawable/reorder"
  153. android:id="@+id/homeactivity_reorder"
  154. />
  155. <TextView
  156. android:layout_width="wrap_content"
  157. android:layout_height="wrap_content"
  158. android:text="Auto Delivery"
  159. android:textSize="18dp"
  160. android:textColor="#38474F"
  161. android:textStyle="bold"
  162. android:layout_toRightOf="@+id/homeactivity_reorder"
  163. android:layout_centerVertical="true"
  164. android:layout_marginLeft="15dp"
  165. />
  166.  
  167. <ImageView
  168. android:layout_width="25dp"
  169. android:layout_height="25dp"
  170.  
  171. android:layout_centerVertical="true"
  172. android:src="@drawable/arrow"
  173. android:layout_alignParentRight="true"
  174. />
  175. </RelativeLayout>
  176. </android.support.v7.widget.CardView>
  177.  
  178.  
  179.  
  180. <View
  181. android:layout_width="100dp"
  182. android:layout_height="3dp"
  183. android:background="#BEC0C1"
  184. android:layout_marginTop="20dp"
  185. android:layout_gravity="center_horizontal"
  186. />
  187.  
  188. <TextView
  189. android:layout_width="wrap_content"
  190. android:layout_height="wrap_content"
  191. android:text="POPULAR CATAGORIES"
  192. android:layout_marginTop="10dp"
  193.  
  194. android:textColor="#747E83"
  195. android:layout_gravity="center_horizontal"
  196. />
  197. <View
  198. android:layout_width="100dp"
  199. android:layout_height="3dp"
  200. android:background="#BEC0C1"
  201. android:layout_marginTop="10dp"
  202. android:layout_gravity="center_horizontal"
  203. />
  204.  
  205. <android.support.v7.widget.RecyclerView
  206. android:id="@+id/homeactivity_recycler_view"
  207. android:scrollbars="vertical"
  208. android:layout_width="match_parent"
  209. android:layout_height="match_parent"/>
  210. </LinearLayout>
  211. </ScrollView>
  212.  
  213.  
  214. </RelativeLayout>
Add Comment
Please, Sign In to add comment