tysdkn_fragment_my_discount.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical">
  7. <RelativeLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="48dp"
  10. android:background="#ff1f2228">
  11. <ImageView
  12. android:id="@+id/tysdkn_iv_my_discount_back"
  13. android:layout_width="48dp"
  14. android:layout_height="48dp"
  15. android:layout_centerVertical="true"
  16. android:padding="15dp"
  17. android:src="@drawable/tysdkn_recahrge_back_left" />
  18. <TextView
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:layout_centerInParent="true"
  22. android:text="我的优惠券"
  23. android:textColor="#ffffff"
  24. android:textSize="16sp" />
  25. </RelativeLayout>
  26. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="40dp"
  29. android:background="#FF262D3B"
  30. android:orientation="horizontal">
  31. <RelativeLayout
  32. android:id="@+id/tysdkn_rl_unused"
  33. android:layout_width="0dp"
  34. android:layout_height="match_parent"
  35. android:layout_weight="1">
  36. <TextView
  37. android:id="@+id/tysdkn_tv_unused"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_centerInParent="true"
  41. android:text="未使用"
  42. android:textColor="#FFF"
  43. android:textSize="12sp" />
  44. <View
  45. android:id="@+id/tysdkn_v_unused"
  46. android:layout_width="47dp"
  47. android:layout_height="3dp"
  48. android:layout_alignParentBottom="true"
  49. android:layout_centerHorizontal="true"
  50. android:background="#FF4366FF" />
  51. </RelativeLayout>
  52. <RelativeLayout
  53. android:id="@+id/tysdkn_rl_have_used"
  54. android:layout_width="0dp"
  55. android:layout_height="match_parent"
  56. android:layout_weight="1">
  57. <TextView
  58. android:id="@+id/tysdkn_tv_have_used"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:layout_centerInParent="true"
  62. android:text="已使用"
  63. android:textColor="#FF6C7484"
  64. android:textSize="12sp" />
  65. <View
  66. android:id="@+id/tysdkn_v_have_used"
  67. android:layout_width="47dp"
  68. android:layout_height="3dp"
  69. android:layout_alignParentBottom="true"
  70. android:layout_centerHorizontal="true"
  71. android:background="#FF4366FF"
  72. android:visibility="invisible"
  73. />
  74. </RelativeLayout>
  75. <RelativeLayout
  76. android:id="@+id/tysdkn_rl_have_expired"
  77. android:layout_width="0dp"
  78. android:layout_height="match_parent"
  79. android:layout_weight="1">
  80. <TextView
  81. android:id="@+id/tysdkn_tv_have_expired"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_centerInParent="true"
  85. android:text="已过期"
  86. android:textColor="#FF6C7484"
  87. android:textSize="12sp" />
  88. <View
  89. android:id="@+id/tysdkn_v_have_expired"
  90. android:layout_width="47dp"
  91. android:layout_height="3dp"
  92. android:layout_alignParentBottom="true"
  93. android:layout_centerHorizontal="true"
  94. android:background="#FF4366FF"
  95. android:visibility="invisible" />
  96. </RelativeLayout>
  97. </LinearLayout>
  98. <!--<FrameLayout-->
  99. <!--android:id="@+id/tysdkn_fl_discount_contain"-->
  100. <!--android:layout_width="match_parent"-->
  101. <!--android:layout_height="match_parent"-->
  102. <!--android:background="#90020202"/>-->
  103. <include layout="@layout/tysdkn_progressbar" />
  104. <ListView
  105. android:id="@+id/tysdkn_lv_my_discount"
  106. android:layout_width="match_parent"
  107. android:layout_height="match_parent"
  108. android:layout_marginTop="5dp"
  109. android:divider="@null"
  110. android:scrollbars="none" />
  111. </LinearLayout>