ricky_yulianto

Untitled

Jun 26th, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:background="@drawable/background_list_catg"
  6. xmlns:card_view="http://schemas.android.com/apk/res-auto"
  7. android:orientation="vertical"
  8. android:layout_marginBottom="20dp"
  9. android:id="@+id/rootLayout">
  10.  
  11.  
  12.  
  13. <!--<android.support.v7.widget.CardView-->
  14. <!--android:id="@+id/card_view"-->
  15. <!--android:layout_width="match_parent"-->
  16. <!--android:layout_height="wrap_content"-->
  17. <!--android:layout_marginTop="1dp"-->
  18. <!--android:layout_marginBottom="1dp"-->
  19. <!--android:layout_marginLeft="1dp"-->
  20. <!--android:layout_marginRight="1dp"-->
  21. <!--card_view:cardBackgroundColor="@color/white"-->
  22. <!--card_view:cardCornerRadius="2dp"-->
  23. <!--card_view:cardUseCompatPadding="false"-->
  24. <!--card_view:cardElevation="5dp">-->
  25.  
  26. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="match_parent"
  29. android:orientation="vertical"
  30. android:padding="5dp">
  31.  
  32.  
  33. <android.support.v7.widget.CardView
  34. android:layout_width="match_parent"
  35. android:layout_height="200dp"
  36. android:layout_margin="0dp"
  37. card_view:cardBackgroundColor="@color/white"
  38. card_view:cardCornerRadius="5dp"
  39. card_view:cardUseCompatPadding="false"
  40. card_view:cardElevation="5dp">
  41.  
  42. <ImageView
  43. android:id="@+id/img_promo_list"
  44. android:layout_width="match_parent"
  45. android:layout_height="200dp"
  46. android:background="@drawable/background_list_catg"
  47. android:layout_gravity="center"
  48. android:adjustViewBounds="true"
  49. android:contentDescription="@string/app_name"
  50. android:scaleType="fitXY"
  51. android:src="@drawable/placeholder220"/>
  52.  
  53. </android.support.v7.widget.CardView>
  54.  
  55. <TextView
  56. android:id="@+id/tv_promo_title"
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent"
  59. android:layout_marginStart="10dp"
  60. android:layout_marginTop="10dp"
  61. android:padding="5dp"
  62. android:textSize="14sp"
  63. android:textStyle="bold"
  64. android:text="Free 1 person at The Grand Duck King"
  65. android:textColor="@android:color/black"/>
  66.  
  67. <LinearLayout
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:layout_marginBottom="10dp"
  71. android:layout_marginStart="10dp"
  72. android:orientation="horizontal"
  73. android:padding="5dp">
  74.  
  75. <LinearLayout
  76. android:layout_weight="1"
  77. android:layout_width="0dp"
  78. android:gravity="center_vertical"
  79. android:layout_height="wrap_content"
  80. android:orientation="horizontal">
  81. <ImageView
  82. android:id="@+id/img_timepromo"
  83. android:src="@drawable/voucher_valid"
  84. android:layout_marginTop="5dp"
  85. android:layout_marginStart="2dp"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content" />
  88. <TextView
  89. android:visibility="gone"
  90. android:id="@+id/tv_promo"
  91. android:textColor="@color/black_semi_transparent"
  92. android:textSize="14sp"
  93. android:layout_marginTop="5dp"
  94. android:layout_marginStart="10dp"
  95. android:textStyle="normal"
  96. android:text="Valid until"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content" />
  99. <TextView
  100. android:id="@+id/tv_promo_valid"
  101. android:textColor="@color/grey500"
  102. android:textSize="14sp"
  103. android:layout_marginTop="5dp"
  104. android:layout_marginStart="10dp"
  105. android:textStyle="normal"
  106. android:text="15 January 2019"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content" />
  109.  
  110. </LinearLayout>
  111. <TextView
  112. android:id="@+id/tv_view_promo"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:background="@drawable/btn_change"
  116. android:layout_marginEnd="10dp"
  117. android:paddingStart="26dp"
  118. android:paddingTop="6dp"
  119. android:paddingEnd="26dp"
  120. android:paddingBottom="6dp"
  121. android:textStyle="bold"
  122. android:text="View"
  123. android:textColor="@color/white"
  124. android:textSize="13sp" />
  125. </LinearLayout>
  126.  
  127.  
  128.  
  129.  
  130. </LinearLayout>
  131.  
  132.  
  133.  
  134.  
  135.  
  136. <!--</android.support.v7.widget.CardView>-->
  137.  
  138.  
  139. </LinearLayout>
Add Comment
Please, Sign In to add comment