Advertisement
ricky_yulianto

Untitled

Jul 8th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.73 KB | None | 0 0
  1. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:orientation="vertical"
  7. xmlns:card_view="http://schemas.android.com/tools"
  8. tools:context="codelabs.ambarrukmo.fragment.HomeFragment">
  9.  
  10. <FrameLayout
  11. android:id="@+id/container_content"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent">
  14.  
  15.  
  16. <include
  17. layout="@layout/error"/>
  18. <include
  19. layout="@layout/loading"/>
  20.  
  21.  
  22. <!--<android.support.v4.widget.SwipeRefreshLayout-->
  23. <!--android:id="@+id/swipe_container"-->
  24. <!--android:layout_width="match_parent"-->
  25. <!--android:layout_height="match_parent">-->
  26.  
  27.  
  28. <android.support.v4.widget.NestedScrollView
  29. android:id="@+id/container_content_nested"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent">
  32.  
  33.  
  34. <LinearLayout
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:orientation="vertical">
  38.  
  39. <LinearLayout
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:layout_marginTop="10dp"
  43. android:background="@android:color/white"
  44. android:gravity="center_vertical"
  45. android:orientation="horizontal"
  46. android:padding="10dp">
  47.  
  48. <LinearLayout
  49. android:layout_width="0dp"
  50. android:layout_height="wrap_content"
  51. android:layout_weight="1"
  52. android:orientation="vertical">
  53.  
  54. <RelativeLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:padding="0dp">
  58.  
  59. <ImageView
  60. android:visibility="gone"
  61. android:id="@+id/img_icpoints"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:src="@drawable/ic_mypoints"/>
  65.  
  66. <TextView
  67. android:id="@+id/tv_mypoints"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_alignTop="@+id/img_icpoints"
  71. android:layout_alignBottom="@+id/img_icpoints"
  72. android:layout_marginStart="10dp"
  73. android:layout_toRightOf="@+id/img_icpoints"
  74. android:gravity="center_vertical"
  75. android:text="My Points"
  76. android:fontFamily="@font/poppins_medium"
  77. android:textColor="@android:color/black"
  78. android:textSize="13sp" />
  79.  
  80. <TextView
  81. android:id="@+id/tv_points"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_alignTop="@+id/img_icpoints"
  85. android:layout_alignBottom="@+id/img_icpoints"
  86. android:layout_alignParentEnd="true"
  87. android:gravity="center"
  88. android:paddingLeft="8dp"
  89. android:paddingRight="8dp"
  90. android:fontFamily="@font/poppins_medium"
  91. android:text="2000 Points"
  92. android:textColor="@android:color/holo_red_light"
  93. android:textSize="14sp"
  94. android:textStyle="bold" />
  95.  
  96. </RelativeLayout>
  97. </LinearLayout>
  98. </LinearLayout>
  99.  
  100. <View
  101. android:layout_width="match_parent"
  102. android:layout_height="2dp"
  103. android:layout_marginTop="5dp"
  104. android:background="@color/dash" />
  105.  
  106. <LinearLayout
  107. android:layout_width="match_parent"
  108. android:layout_height="wrap_content"
  109. android:layout_marginTop="0dp"
  110. android:gravity="center_vertical"
  111. android:orientation="horizontal"
  112. android:padding="0dp">
  113.  
  114. <LinearLayout
  115. android:layout_width="match_parent"
  116. android:layout_height="match_parent"
  117. android:orientation="vertical">
  118.  
  119.  
  120. <LinearLayout
  121. android:id="@+id/card_viewslider"
  122. android:layout_width="match_parent"
  123. android:layout_height="250dp"
  124. android:orientation="horizontal"
  125. android:layout_margin="0dp">
  126.  
  127. <RelativeLayout
  128. android:id="@+id/rvPromoBanner"
  129. android:layout_width="match_parent"
  130. android:layout_height="match_parent">
  131.  
  132. <FrameLayout
  133. android:layout_width="match_parent"
  134. android:layout_height="match_parent">
  135.  
  136. <android.support.v4.view.ViewPager
  137. android:id="@+id/viewPager"
  138. android:layout_width="wrap_content"
  139. android:layout_height="match_parent" />
  140.  
  141. <LinearLayout
  142. android:layout_width="match_parent"
  143. android:layout_height="match_parent"
  144. android:gravity="bottom">
  145.  
  146. <LinearLayout
  147. android:id="@+id/indicator"
  148. android:layout_width="match_parent"
  149. android:layout_height="wrap_content"
  150. android:layout_gravity="center|bottom"
  151. android:orientation="horizontal"
  152. android:layout_marginBottom="@dimen/_10sdp" >
  153.  
  154. </LinearLayout>
  155.  
  156.  
  157. </LinearLayout>
  158.  
  159.  
  160.  
  161. </FrameLayout>
  162.  
  163. <ImageView
  164. android:id="@+id/next"
  165. android:layout_width="40dp"
  166. android:layout_height="40dp"
  167. android:background="@drawable/ic_chevron_right"
  168. android:layout_marginEnd="10dp"
  169. android:backgroundTint="@color/colorPrimary"
  170. android:layout_centerInParent="true"
  171. android:layout_alignParentRight="true"
  172. android:layout_alignParentEnd="true"/>
  173.  
  174. <ImageView
  175. android:id="@+id/previous"
  176. android:layout_width="40dp"
  177. android:layout_height="40dp"
  178. android:layout_marginStart="10dp"
  179. android:backgroundTint="@color/colorPrimary"
  180. android:background="@drawable/ic_chevron_left"
  181. android:layout_alignParentLeft="true"
  182. android:layout_centerInParent="true"
  183. android:layout_alignParentStart="true"
  184. android:layout_alignTop="@+id/next"/>
  185.  
  186.  
  187. </RelativeLayout>
  188.  
  189. <ImageView
  190. android:visibility="gone"
  191. android:id="@+id/img_bannertest"
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:clickable="true"
  195. android:paddingTop="10dp"
  196. android:paddingBottom="10dp"
  197. android:src="@drawable/placeholder220" />
  198.  
  199. </LinearLayout>
  200.  
  201. </LinearLayout>
  202. </LinearLayout>
  203.  
  204.  
  205. <LinearLayout
  206. android:layout_width="match_parent"
  207. android:layout_height="wrap_content"
  208. android:layout_marginTop="0dp"
  209. android:background="@android:color/white"
  210. android:gravity="center_vertical"
  211. android:orientation="horizontal"
  212. android:paddingHorizontal="@dimen/_20sdp"
  213. android:padding="0dp">
  214.  
  215.  
  216. <android.support.v7.widget.RecyclerView
  217. android:id="@+id/rv_list_promo_category"
  218. android:layout_width="match_parent"
  219. android:layout_height="wrap_content"
  220. android:nestedScrollingEnabled="false">
  221.  
  222. </android.support.v7.widget.RecyclerView>
  223. </LinearLayout>
  224.  
  225.  
  226.  
  227. <LinearLayout
  228. android:layout_width="match_parent"
  229. android:layout_height="wrap_content"
  230. android:layout_marginTop="15dp"
  231. android:background="@android:color/white"
  232. android:gravity="center_vertical"
  233. android:orientation="horizontal"
  234. android:padding="0dp">
  235.  
  236. <LinearLayout
  237. android:layout_width="0dp"
  238. android:layout_height="wrap_content"
  239. android:layout_weight="1"
  240. android:orientation="horizontal">
  241.  
  242. <RelativeLayout
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content"
  245. android:padding="15dp">
  246.  
  247. <TextView
  248. android:id="@+id/tv_merchant"
  249. android:layout_width="wrap_content"
  250. android:layout_height="wrap_content"
  251. android:text="What's On"
  252. android:textStyle="bold"
  253. android:fontFamily="@font/poppins_light"
  254. android:textColor="@android:color/black"
  255. android:textSize="13sp" />
  256.  
  257. <View
  258. android:layout_width="35dp"
  259. android:layout_height="3dp"
  260. android:layout_marginTop="25dp"
  261. android:background="@color/colorPrimaryDark" />
  262.  
  263. <TextView
  264. android:id="@+id/tv_view_all_merch"
  265. android:layout_width="wrap_content"
  266. android:layout_height="wrap_content"
  267. android:text="View all"
  268. android:textStyle="normal"
  269. android:fontFamily="@font/poppins_medium"
  270. android:padding="5dp"
  271. android:layout_alignParentEnd="true"
  272. android:textColor="@color/blue"
  273. android:textSize="13sp" />
  274.  
  275.  
  276.  
  277. </RelativeLayout>
  278. </LinearLayout>
  279. </LinearLayout>
  280.  
  281. <LinearLayout
  282. android:layout_width="match_parent"
  283. android:layout_height="wrap_content"
  284. android:layout_marginTop="0dp"
  285. android:background="@android:color/white"
  286. android:gravity="center_vertical"
  287. android:orientation="horizontal"
  288. android:padding="0dp">
  289.  
  290.  
  291. <android.support.v7.widget.RecyclerView
  292. android:id="@+id/rv_list_merchant"
  293. android:layout_width="match_parent"
  294. android:layout_height="wrap_content"
  295. android:nestedScrollingEnabled="false">
  296.  
  297. </android.support.v7.widget.RecyclerView>
  298. </LinearLayout>
  299.  
  300. <LinearLayout
  301. android:layout_width="match_parent"
  302. android:layout_height="wrap_content"
  303. android:layout_marginTop="10dp"
  304. android:background="@color/white"
  305. android:gravity="center_vertical"
  306. android:orientation="horizontal"
  307. android:padding="10dp">
  308.  
  309. <LinearLayout
  310. android:visibility="gone"
  311. android:layout_width="0dp"
  312. android:layout_height="wrap_content"
  313. android:layout_weight="1"
  314. android:orientation="horizontal">
  315.  
  316. <RelativeLayout
  317. android:layout_width="match_parent"
  318. android:layout_height="wrap_content"
  319. android:padding="0dp">
  320.  
  321. <TextView
  322. android:id="@+id/tv_list_promo1"
  323. android:layout_width="wrap_content"
  324. android:layout_height="wrap_content"
  325. android:text="Dinner with your loved ones"
  326. android:textColor="@android:color/black"
  327. android:textStyle="bold"
  328. android:textSize="13sp" />
  329.  
  330. <View
  331. android:layout_width="35dp"
  332. android:layout_height="3dp"
  333. android:layout_marginTop="20dp"
  334. android:background="@color/colorPrimaryDark"/>
  335.  
  336. <TextView
  337. android:id="@+id/tv_viewall_merchant"
  338. android:layout_width="wrap_content"
  339. android:layout_height="wrap_content"
  340. android:layout_alignParentEnd="true"
  341. android:text="@string/viewall"
  342. android:textColor="@color/blue"
  343. android:textSize="13sp" />
  344.  
  345. </RelativeLayout>
  346. </LinearLayout>
  347. </LinearLayout>
  348.  
  349.  
  350. <LinearLayout
  351. android:visibility="gone"
  352. android:layout_width="match_parent"
  353. android:layout_height="wrap_content"
  354. android:layout_marginTop="0dp"
  355. android:background="@android:color/white"
  356. android:gravity="center_vertical"
  357. android:orientation="horizontal"
  358. android:padding="10dp">
  359.  
  360.  
  361. <android.support.v7.widget.RecyclerView
  362. android:id="@+id/rv_list_promo_home"
  363. android:layout_width="match_parent"
  364. android:layout_height="wrap_content"
  365. android:nestedScrollingEnabled="false">
  366.  
  367. </android.support.v7.widget.RecyclerView>
  368. </LinearLayout>
  369.  
  370.  
  371.  
  372. <LinearLayout
  373. android:visibility="gone"
  374. android:layout_width="match_parent"
  375. android:layout_height="wrap_content"
  376. android:layout_marginTop="10dp"
  377. android:background="@color/white"
  378. android:gravity="center_vertical"
  379. android:orientation="horizontal"
  380. android:padding="10dp">
  381.  
  382. <LinearLayout
  383. android:layout_width="0dp"
  384. android:layout_height="wrap_content"
  385. android:layout_weight="1"
  386. android:orientation="horizontal">
  387.  
  388. <RelativeLayout
  389. android:layout_width="match_parent"
  390. android:layout_height="wrap_content"
  391. android:padding="0dp">
  392.  
  393. <TextView
  394. android:id="@+id/tv_promo2"
  395. android:layout_width="wrap_content"
  396. android:layout_height="wrap_content"
  397. android:text="Heart-hearted shopping"
  398. android:textColor="@android:color/black"
  399. android:textStyle="bold"
  400. android:textSize="13sp" />
  401.  
  402. <View
  403. android:layout_width="35dp"
  404. android:layout_height="3dp"
  405. android:layout_marginTop="20dp"
  406. android:background="@color/colorPrimaryDark"/>
  407.  
  408. <TextView
  409. android:layout_width="wrap_content"
  410. android:layout_height="wrap_content"
  411. android:layout_alignParentEnd="true"
  412. android:text="@string/viewall"
  413. android:textColor="@color/blue"
  414. android:textSize="13sp" />
  415.  
  416. </RelativeLayout>
  417. </LinearLayout>
  418. </LinearLayout>
  419.  
  420. <LinearLayout
  421. android:visibility="gone"
  422. android:layout_width="match_parent"
  423. android:layout_height="wrap_content"
  424. android:layout_marginTop="0dp"
  425. android:background="@android:color/white"
  426. android:gravity="center_vertical"
  427. android:orientation="horizontal"
  428. android:padding="10dp">
  429.  
  430.  
  431. <android.support.v7.widget.RecyclerView
  432. android:id="@+id/rv_list_promo_home2"
  433. android:layout_width="match_parent"
  434. android:layout_height="wrap_content"
  435. android:nestedScrollingEnabled="false">
  436.  
  437. </android.support.v7.widget.RecyclerView>
  438. </LinearLayout>
  439.  
  440.  
  441.  
  442.  
  443. <LinearLayout
  444. android:visibility="gone"
  445. android:layout_width="match_parent"
  446. android:layout_height="wrap_content"
  447. android:layout_marginTop="10dp"
  448. android:background="@color/white"
  449. android:gravity="center_vertical"
  450. android:orientation="horizontal"
  451. android:padding="10dp">
  452.  
  453. <LinearLayout
  454. android:layout_width="0dp"
  455. android:layout_height="wrap_content"
  456. android:layout_weight="1"
  457. android:orientation="horizontal">
  458.  
  459. <RelativeLayout
  460. android:layout_width="match_parent"
  461. android:layout_height="wrap_content"
  462. android:padding="0dp">
  463.  
  464. <TextView
  465. android:id="@+id/tv_bottom_banner"
  466. android:layout_width="wrap_content"
  467. android:layout_height="wrap_content"
  468. android:text="Promo of the month"
  469. android:textColor="@android:color/black"
  470. android:textSize="13sp" />
  471.  
  472. <View
  473. android:layout_width="35dp"
  474. android:layout_height="3dp"
  475. android:layout_marginTop="20dp"
  476. android:background="@color/colorPrimaryDark"/>
  477.  
  478. <!--<TextView-->
  479. <!--android:layout_width="wrap_content"-->
  480. <!--android:layout_height="wrap_content"-->
  481. <!--android:layout_alignParentEnd="true"-->
  482. <!--android:text="@string/viewall"-->
  483. <!--android:textAppearance="?android:attr/textAppearance"-->
  484. <!--android:textColor="@color/blue"-->
  485. <!--android:textSize="13sp" />-->
  486.  
  487. </RelativeLayout>
  488. </LinearLayout>
  489. </LinearLayout>
  490.  
  491. <LinearLayout
  492. android:layout_width="match_parent"
  493. android:layout_height="wrap_content"
  494. android:layout_marginTop="0dp"
  495. android:background="@android:color/white"
  496. android:gravity="center_vertical"
  497. android:orientation="horizontal"
  498. android:padding="10dp">
  499.  
  500.  
  501. <!--<android.support.v7.widget.RecyclerView-->
  502. <!--android:id="@+id/rv_list_promo_home2"-->
  503. <!--android:layout_width="match_parent"-->
  504. <!--android:layout_height="wrap_content"-->
  505. <!--android:nestedScrollingEnabled="false">-->
  506.  
  507. <!--</android.support.v7.widget.RecyclerView>-->
  508.  
  509.  
  510. <ImageView
  511. android:id="@+id/img_top_promo"
  512. android:layout_width="match_parent"
  513. android:layout_height="wrap_content"
  514. android:scaleType="centerCrop"
  515. android:adjustViewBounds="true"
  516. android:src="@drawable/placeholder220"
  517. android:layout_marginBottom="10dp"
  518. android:layout_marginTop="0dp"/>
  519.  
  520. </LinearLayout>
  521.  
  522. <!--<LinearLayout-->
  523. <!--android:layout_width="match_parent"-->
  524. <!--android:layout_height="wrap_content"-->
  525. <!--android:layout_marginTop="0dp"-->
  526. <!--android:background="@android:color/white"-->
  527. <!--android:gravity="center_vertical"-->
  528. <!--android:orientation="horizontal"-->
  529. <!--android:padding="10dp">-->
  530.  
  531.  
  532. <!--<android.support.v7.widget.CardView-->
  533. <!--android:layout_width="75dp"-->
  534. <!--android:layout_height="85dp"-->
  535. <!--android:layout_margin="4dp"-->
  536. <!--card_view:cardBackgroundColor="@color/white_pressed"-->
  537. <!--card_view:cardCornerRadius="2dp"-->
  538. <!--card_view:cardUseCompatPadding="false"-->
  539. <!--card_view:cardElevation="5dp">-->
  540.  
  541. <!--<ImageView-->
  542. <!--android:layout_width="65dp"-->
  543. <!--android:layout_height="70dp"-->
  544. <!--android:layout_gravity="center"-->
  545. <!--android:contentDescription="@string/app_name"-->
  546. <!--android:scaleType="fitXY"-->
  547. <!--android:src="@drawable/img_merchant_1"/>-->
  548.  
  549.  
  550. <!--</android.support.v7.widget.CardView>-->
  551.  
  552. <!--<android.support.v7.widget.CardView-->
  553. <!--android:layout_width="75dp"-->
  554. <!--android:layout_height="85dp"-->
  555. <!--android:layout_margin="4dp"-->
  556. <!--card_view:cardBackgroundColor="@color/white_pressed"-->
  557. <!--card_view:cardCornerRadius="2dp"-->
  558. <!--card_view:cardUseCompatPadding="false"-->
  559. <!--card_view:cardElevation="5dp">-->
  560.  
  561. <!--<ImageView-->
  562. <!--android:layout_width="65dp"-->
  563. <!--android:layout_height="70dp"-->
  564. <!--android:layout_gravity="center"-->
  565. <!--android:contentDescription="@string/app_name"-->
  566. <!--android:scaleType="fitXY"-->
  567. <!--android:src="@drawable/img_merchant_2"/>-->
  568.  
  569.  
  570. <!--</android.support.v7.widget.CardView>-->
  571.  
  572. <!--<android.support.v7.widget.CardView-->
  573. <!--android:layout_width="75dp"-->
  574. <!--android:layout_height="85dp"-->
  575. <!--android:layout_margin="4dp"-->
  576. <!--card_view:cardBackgroundColor="@color/white_pressed"-->
  577. <!--card_view:cardCornerRadius="2dp"-->
  578. <!--card_view:cardUseCompatPadding="false"-->
  579. <!--card_view:cardElevation="5dp">-->
  580.  
  581. <!--<ImageView-->
  582. <!--android:layout_width="65dp"-->
  583. <!--android:layout_height="70dp"-->
  584. <!--android:layout_gravity="center"-->
  585. <!--android:contentDescription="@string/app_name"-->
  586. <!--android:scaleType="fitXY"-->
  587. <!--android:src="@drawable/img_merchant_3"/>-->
  588.  
  589.  
  590. <!--</android.support.v7.widget.CardView>-->
  591.  
  592. <!--</LinearLayout>-->
  593.  
  594.  
  595. </LinearLayout>
  596. </android.support.v4.widget.NestedScrollView>
  597. <!--</android.support.v4.widget.SwipeRefreshLayout>-->
  598. </FrameLayout>
  599.  
  600. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement