ricky_yulianto

Untitled

Jul 10th, 2019
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.03 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@android:color/white"
  8. android:id="@+id/cordinatorLayout"
  9. android:orientation="vertical"
  10. tools:context="codelabs.ambarrukmo.activity.PromoDetailMyCardActivity">
  11.  
  12.  
  13. <!--<include-->
  14. <!--layout="@layout/header_layout_promodetail_2"/>-->
  15.  
  16. <android.support.design.widget.AppBarLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content">
  19.  
  20. <android.support.design.widget.CollapsingToolbarLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. app:contentScrim="@color/white"
  24. app:expandedTitleGravity="top"
  25. app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
  26.  
  27.  
  28. <LinearLayout
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:background="@color/white"
  32. android:orientation="vertical">
  33.  
  34. <ImageView
  35. android:id="@+id/image_center"
  36. android:layout_width="match_parent"
  37. android:layout_height="@dimen/_150sdp"
  38. android:layout_marginBottom="@dimen/_1sdp"
  39. android:adjustViewBounds="false"
  40. android:scaleType="centerCrop"
  41. android:src="@color/grey500"
  42. app:layout_collapseMode="parallax"
  43. app:layout_collapseParallaxMultiplier="0.5"/>
  44.  
  45. <LinearLayout
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:orientation="horizontal">
  49.  
  50. <ImageView
  51. android:id="@+id/image1"
  52. android:layout_width="0dp"
  53. android:layout_weight="1"
  54. android:layout_height="@dimen/_50sdp"
  55. android:adjustViewBounds="true"
  56. android:scaleType="centerCrop"
  57. android:layout_marginEnd="@dimen/_1sdp"
  58. android:src="@color/grey500"/>
  59.  
  60. <ImageView
  61. android:id="@+id/image2"
  62. android:layout_width="0dp"
  63. android:layout_weight="1"
  64. android:layout_height="@dimen/_50sdp"
  65. android:adjustViewBounds="true"
  66. android:scaleType="centerCrop"
  67. android:layout_marginEnd="@dimen/_1sdp"
  68. android:src="@color/grey500"/>
  69.  
  70. <ImageView
  71. android:id="@+id/image3"
  72. android:layout_width="0dp"
  73. android:layout_weight="1"
  74. android:layout_height="@dimen/_50sdp"
  75. android:adjustViewBounds="true"
  76. android:scaleType="centerCrop"
  77. android:layout_marginEnd="@dimen/_1sdp"
  78. android:src="@color/grey500"/>
  79.  
  80. <FrameLayout
  81. android:layout_width="0dp"
  82. android:layout_height="@dimen/_50sdp"
  83. android:layout_weight="1"
  84. android:alpha="0.5"
  85. android:background="@android:color/background_dark">
  86.  
  87. <ImageView
  88. android:id="@+id/image4"
  89. android:scaleType="centerCrop"
  90. android:adjustViewBounds="true"
  91. android:layout_width="match_parent"
  92. android:layout_height="match_parent" />
  93.  
  94. <TextView
  95. android:layout_width="match_parent"
  96. android:layout_gravity="center"
  97. android:layout_height="match_parent"
  98. android:alpha="0.5"
  99. android:background="@android:color/background_dark"
  100. android:gravity="center"
  101. android:text="See All Photos"
  102. android:fontFamily="@font/poppins_regular"
  103. android:textSize="@dimen/_8sdp"
  104. android:textColor="@android:color/white" />
  105. </FrameLayout>
  106. </LinearLayout>
  107. </LinearLayout>
  108.  
  109.  
  110. <android.support.v7.widget.Toolbar
  111. android:id="@+id/toolbar"
  112. android:layout_width="match_parent"
  113. android:layout_height="wrap_content"
  114. app:layout_collapseMode="pin"
  115. android:layout_marginTop="@dimen/_20sdp">
  116.  
  117. <ImageView
  118. android:id="@+id/iv_back"
  119. android:layout_width="wrap_content"
  120. android:layout_height="wrap_content"
  121. android:src="@drawable/left_white"/>
  122.  
  123.  
  124. </android.support.v7.widget.Toolbar>
  125. </android.support.design.widget.CollapsingToolbarLayout>
  126. </android.support.design.widget.AppBarLayout>
  127.  
  128.  
  129. <android.support.v4.widget.NestedScrollView
  130. android:layout_width="match_parent"
  131. android:layout_height="wrap_content"
  132. app:layout_behavior="android.support.design.widget.AppBarLayout$ScrollingViewBehavior">
  133.  
  134.  
  135. <LinearLayout
  136. android:id="@+id/content"
  137. android:layout_width="match_parent"
  138. android:layout_height="wrap_content"
  139. android:orientation="vertical"
  140. android:layout_marginBottom="@dimen/_50sdp">
  141.  
  142. <LinearLayout
  143. android:layout_width="match_parent"
  144. android:layout_height="wrap_content"
  145. android:layout_marginHorizontal="@dimen/_15sdp"
  146. android:orientation="vertical">
  147.  
  148. <LinearLayout
  149. android:layout_width="match_parent"
  150. android:layout_height="match_parent"
  151. android:layout_marginTop="10dp"
  152. android:background="@android:color/transparent"
  153. android:gravity="center_vertical"
  154. android:orientation="horizontal"
  155. android:padding="0dp">
  156.  
  157. <LinearLayout
  158. android:layout_width="match_parent"
  159. android:layout_height="wrap_content">
  160. <TextView
  161. android:id="@+id/store_name"
  162. android:layout_width="wrap_content"
  163. android:layout_height="wrap_content"
  164. android:layout_marginEnd="@dimen/_5sdp"
  165. android:text="Store Name"
  166. android:fontFamily="@font/poppins_medium"
  167. android:textStyle="bold" />
  168. <android.support.v7.widget.AppCompatRatingBar
  169. style="@style/Widget.AppCompat.RatingBar.Small"
  170. android:id="@+id/rating"
  171. android:layout_width="wrap_content"
  172. android:layout_height="wrap_content"
  173. android:numStars="5"
  174. android:rating="3"
  175. android:progressTint="@color/yellow"
  176. android:layout_gravity="center"/>
  177.  
  178.  
  179. </LinearLayout>
  180. </LinearLayout>
  181. <LinearLayout
  182. android:layout_width="match_parent"
  183. android:layout_height="match_parent"
  184. android:layout_marginTop="10dp"
  185. android:background="@android:color/transparent"
  186. android:gravity="center_vertical"
  187. android:orientation="horizontal"
  188. android:padding="0dp">
  189.  
  190. <RelativeLayout
  191. android:layout_width="match_parent"
  192. android:layout_height="wrap_content"
  193. android:padding="0dp">
  194.  
  195. <TextView
  196. android:id="@+id/tv_name_category"
  197. android:layout_width="wrap_content"
  198. android:layout_height="wrap_content"
  199. android:background="@drawable/btn_border_catg"
  200. android:paddingStart="15dp"
  201. android:paddingTop="5dp"
  202. android:paddingEnd="15dp"
  203. android:paddingBottom="5dp"
  204. android:text="Dining"
  205. android:textColor="@color/dot_dark_screen2"
  206. android:textSize="13sp" />
  207.  
  208. <TextView
  209. android:id="@+id/tv_value"
  210. android:layout_width="wrap_content"
  211. android:layout_height="wrap_content"
  212. android:layout_alignTop="@+id/tv_name_category"
  213. android:layout_alignBottom="@+id/tv_name_category"
  214. android:layout_alignParentEnd="true"
  215. android:layout_marginStart="10dp"
  216. android:layout_marginEnd="10dp"
  217. android:gravity="center_vertical"
  218. android:src="@drawable/ic_star"
  219. android:text="8.3"
  220. android:textColor="@color/dot_dark_screen2"
  221. android:textSize="21sp"
  222. android:textStyle="bold" />
  223.  
  224. </RelativeLayout>
  225. </LinearLayout>
  226.  
  227. <LinearLayout
  228. android:layout_width="match_parent"
  229. android:layout_height="match_parent"
  230. android:layout_marginTop="10dp"
  231. android:background="@android:color/transparent"
  232. android:gravity="center_vertical"
  233. android:orientation="horizontal"
  234. android:padding="0dp">
  235.  
  236. <RelativeLayout
  237. android:layout_width="match_parent"
  238. android:layout_height="wrap_content"
  239. android:layout_marginStart="5dp"
  240. android:layout_marginEnd="5dp"
  241. android:padding="0dp">
  242.  
  243. <TextView
  244. android:id="@+id/tv_address"
  245. android:layout_width="wrap_content"
  246. android:layout_height="wrap_content"
  247. android:text="Gandaria City, Lt. Upper Ground"
  248. android:textColor="@color/half_black"
  249. android:textSize="13sp" />
  250.  
  251. <TextView
  252. android:id="@+id/tv_value_catg"
  253. android:layout_width="wrap_content"
  254. android:layout_height="wrap_content"
  255. android:layout_alignTop="@+id/tv_address"
  256. android:layout_alignBottom="@+id/tv_address"
  257. android:layout_alignParentEnd="true"
  258. android:layout_marginStart="10dp"
  259. android:layout_marginEnd="10dp"
  260. android:gravity="center_vertical"
  261. android:text="Impressive"
  262. android:textColor="@color/dot_dark_screen2"
  263. android:textSize="14sp"
  264. android:textStyle="bold" />
  265.  
  266. </RelativeLayout>
  267. </LinearLayout>
  268.  
  269. <LinearLayout
  270. android:layout_width="match_parent"
  271. android:layout_height="match_parent"
  272. android:layout_marginTop="30dp"
  273. android:background="@android:color/transparent"
  274. android:gravity="center_vertical"
  275. android:orientation="horizontal"
  276. android:padding="5dp">
  277.  
  278. <LinearLayout
  279. android:layout_width="match_parent"
  280. android:layout_height="match_parent"
  281. android:orientation="vertical">
  282.  
  283. <TextView
  284. android:id="@+id/tv_title_review"
  285. android:layout_width="match_parent"
  286. android:layout_height="match_parent"
  287. android:gravity="center"
  288. android:text="10 guest talked about comfortable place"
  289. android:textColor="@color/grey500"
  290. android:textSize="12sp"
  291. android:textStyle="italic" />
  292.  
  293. </LinearLayout>
  294. </LinearLayout>
  295.  
  296. <LinearLayout
  297. android:layout_width="match_parent"
  298. android:layout_height="match_parent"
  299. android:layout_marginStart="10dp"
  300. android:layout_marginTop="0dp"
  301. android:layout_marginEnd="10dp"
  302. android:background="@android:color/transparent"
  303. android:gravity="center_vertical"
  304. android:orientation="horizontal"
  305. android:padding="5dp">
  306.  
  307. <LinearLayout
  308. android:layout_width="match_parent"
  309. android:layout_height="match_parent"
  310. android:orientation="vertical">
  311.  
  312. <TextView
  313. android:id="@+id/tv_desc_review"
  314. android:layout_width="match_parent"
  315. android:layout_height="match_parent"
  316. android:drawableStart="@drawable/ic_chevron_left"
  317. android:drawableEnd="@drawable/ic_chevron_right"
  318. android:drawablePadding="10dp"
  319. android:drawableTint="@color/dot_dark_screen1"
  320. android:gravity="center"
  321. android:text="Comfortable place around Gandaria for eating with family, cheap, and clean."
  322. android:textColor="@android:color/black"
  323. android:textSize="13sp"
  324. android:textStyle="bold" />
  325.  
  326. </LinearLayout>
  327. </LinearLayout>
  328.  
  329. <LinearLayout
  330. android:layout_width="match_parent"
  331. android:layout_height="match_parent"
  332. android:layout_marginTop="0dp"
  333. android:background="@android:color/transparent"
  334. android:gravity="center_vertical"
  335. android:orientation="horizontal"
  336. android:padding="5dp">
  337.  
  338. <LinearLayout
  339. android:layout_width="match_parent"
  340. android:layout_height="match_parent"
  341. android:orientation="vertical">
  342.  
  343. <TextView
  344. android:id="@+id/tv_name_review"
  345. android:layout_width="match_parent"
  346. android:layout_height="match_parent"
  347. android:gravity="center"
  348. android:text="H.Saeb Riyadh"
  349. android:textColor="@color/grey500"
  350. android:textSize="13sp"
  351. android:textStyle="bold" />
  352.  
  353. </LinearLayout>
  354. </LinearLayout>
  355.  
  356. <LinearLayout
  357. android:layout_width="match_parent"
  358. android:layout_height="match_parent"
  359. android:layout_marginTop="30dp"
  360. android:background="@android:color/transparent"
  361. android:gravity="center_vertical"
  362. android:orientation="horizontal"
  363. android:padding="10dp">
  364.  
  365. <LinearLayout
  366. android:layout_width="match_parent"
  367. android:layout_height="match_parent"
  368. android:orientation="vertical">
  369.  
  370. <TextView
  371. android:id="@+id/tv_notice"
  372. android:layout_width="match_parent"
  373. android:layout_height="match_parent"
  374. android:gravity="center"
  375. android:text="Restaurant Description"
  376. android:textColor="@android:color/black"
  377. android:textSize="14sp"
  378. android:textStyle="bold" />
  379.  
  380. </LinearLayout>
  381. </LinearLayout>
  382.  
  383. <LinearLayout
  384. android:layout_width="match_parent"
  385. android:layout_height="match_parent"
  386. android:layout_marginStart="10dp"
  387. android:layout_marginTop="0dp"
  388. android:layout_marginEnd="10dp"
  389. android:background="@android:color/transparent"
  390. android:orientation="horizontal"
  391. android:padding="5dp">
  392.  
  393. <LinearLayout
  394. android:layout_width="match_parent"
  395. android:layout_height="match_parent"
  396. android:orientation="vertical">
  397.  
  398. <TextView
  399. android:id="@+id/description"
  400. android:layout_width="match_parent"
  401. android:layout_height="match_parent"
  402. android:gravity="left"
  403. android:text="@string/terms"
  404. android:textColor="@color/black_semi_transparent"
  405. android:textSize="13sp" />
  406.  
  407. </LinearLayout>
  408. </LinearLayout>
  409.  
  410.  
  411. </LinearLayout>
  412.  
  413. </LinearLayout>
  414.  
  415. </android.support.v4.widget.NestedScrollView>
  416.  
  417. <FrameLayout
  418. android:layout_width="match_parent"
  419. android:layout_height="wrap_content"
  420. android:nestedScrollingEnabled="false"
  421. android:background="?attr/selectableItemBackgroundBorderless"
  422. android:layout_gravity="bottom">
  423.  
  424.  
  425. <Button
  426. android:layout_width="match_parent"
  427. android:layout_height="match_parent"
  428. android:layout_gravity="center_horizontal"
  429. android:layout_marginStart="20dp"
  430. android:layout_marginEnd="20dp"
  431. android:layout_marginTop="10dp"
  432. android:layout_marginBottom="20dp"
  433. android:background="@drawable/btn_change"
  434. android:paddingStart="40dp"
  435. android:paddingEnd="40dp"
  436. android:text="GET VOUCHER"
  437. android:fontFamily="@font/poppins_medium"
  438. android:textAllCaps="false"
  439. android:textColor="@android:color/white"
  440. android:textSize="13sp"
  441. android:textStyle="bold" />
  442.  
  443.  
  444.  
  445. </FrameLayout>
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454. </android.support.design.widget.CoordinatorLayout>
Add Comment
Please, Sign In to add comment