zzz_grab_game_ticket_item.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="@dimen/zzz_game_ticket_item_height">
  5. <include
  6. android:id="@+id/zzz_grab_gift_btn"
  7. android:layout_marginRight="@dimen/zzz_grab_gift_btn_margin_right"
  8. android:layout_width="wrap_content"
  9. android:layout_height="match_parent"
  10. android:layout_alignParentRight="true"
  11. android:layout_centerVertical="true"
  12. layout="@layout/zzz_grab_gift_btn"/>
  13. <RelativeLayout
  14. android:id="@+id/zzz_game_ticket_header"
  15. android:layout_width="wrap_content"
  16. android:layout_height="match_parent"
  17. android:layout_marginBottom="@dimen/zzz_game_ticket_item_content_margin"
  18. android:layout_marginTop="@dimen/zzz_game_ticket_item_content_margin"
  19. android:layout_marginLeft="@dimen/zzz_game_ticket_item_content_margin_left"
  20. android:background="@drawable/zzz_game_ticket_valid">
  21. <RelativeLayout
  22. android:id="@+id/zzz_ticket_value"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_centerHorizontal="true"
  26. android:layout_marginTop="@dimen/zzz_game_ticket_value_margin_top">
  27. <TextView
  28. android:id="@+id/zzz_game_ticket_value"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:includeFontPadding="false"
  32. android:singleLine="true"
  33. android:textColor="@android:color/white"
  34. android:textSize="@dimen/zzz_game_ticket_value_text_size"
  35. android:textStyle="bold"/>
  36. <TextView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_alignBottom="@+id/zzz_game_ticket_value"
  40. android:layout_alignBaseline="@+id/zzz_game_ticket_value"
  41. android:layout_toRightOf="@+id/zzz_game_ticket_value"
  42. android:text="@string/zzz_yuan"
  43. android:textColor="@color/zzz_white"
  44. android:textSize="@dimen/zzz_yuan_text_size"
  45. android:textStyle="bold"/>
  46. </RelativeLayout>
  47. <TextView
  48. android:id="@+id/zzz_game_ticket_rule"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:layout_below="@id/zzz_ticket_value"
  52. android:layout_centerHorizontal="true"
  53. android:layout_marginTop="@dimen/zzz_game_ticket_rule_margin_top"
  54. android:layout_marginBottom="@dimen/zzz_game_ticket_rule_margin_bottom"
  55. android:gravity="center_vertical"
  56. android:includeFontPadding="false"
  57. android:singleLine="true"
  58. android:textColor="@color/zzz_game_ticket_rule_text_color"
  59. android:textSize="@dimen/zzz_game_ticket_rule_text_size"/>
  60. </RelativeLayout>
  61. <RelativeLayout
  62. android:id="@+id/zzz_game_ticket_body"
  63. android:layout_width="@dimen/zzz_game_ticket_body_width"
  64. android:layout_height="match_parent"
  65. android:layout_marginBottom="@dimen/zzz_game_ticket_item_content_margin"
  66. android:layout_marginTop="@dimen/zzz_game_ticket_item_content_margin"
  67. android:layout_marginRight="@dimen/zzz_game_ticket_item_content_margin_left"
  68. android:layout_toRightOf="@id/zzz_game_ticket_header">
  69. <ImageView
  70. android:id="@+id/zzz_game_ticket_status"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:layout_alignParentBottom="true"
  74. android:layout_alignParentRight="true"
  75. android:background="@drawable/zzz_game_ticket_used"/>
  76. <View
  77. android:id="@+id/zzz_padding_view"
  78. android:layout_width="@dimen/zzz_padding_view_width"
  79. android:layout_height="match_parent"
  80. android:layout_alignParentRight="true"/>
  81. <TextView
  82. android:id="@+id/zzz_game_ticket_title"
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:layout_marginLeft="@dimen/zzz_game_ticket_title_margin_left"
  86. android:layout_marginTop="@dimen/zzz_game_ticket_title_margin_top"
  87. android:layout_toLeftOf="@id/zzz_padding_view"
  88. android:includeFontPadding="false"
  89. android:singleLine="true"
  90. android:textColor="@color/zzz_game_ticket_title_color"
  91. android:textSize="@dimen/zzz_game_ticket_title_text_size"/>
  92. <TextView
  93. android:id="@+id/zzz_game_ticket_description"
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:layout_alignLeft="@id/zzz_game_ticket_title"
  97. android:layout_below="@id/zzz_game_ticket_title"
  98. android:layout_marginTop="@dimen/zzz_game_ticket_description_margin_top"
  99. android:layout_toLeftOf="@id/zzz_padding_view"
  100. android:includeFontPadding="false"
  101. android:singleLine="true"
  102. android:textColor="@color/zzz_game_ticket_description_text_color"
  103. android:textSize="@dimen/zzz_game_ticket_description_text_size"/>
  104. <TextView
  105. android:id="@+id/zzz_game_ticket_time"
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:layout_alignLeft="@id/zzz_game_ticket_title"
  109. android:layout_below="@id/zzz_game_ticket_description"
  110. android:layout_marginTop="@dimen/zzz_game_ticket_time_margin_top"
  111. android:layout_toLeftOf="@id/zzz_padding_view"
  112. android:includeFontPadding="false"
  113. android:singleLine="true"
  114. android:textColor="@color/zzz_game_ticket_time_text_color"
  115. android:textSize="@dimen/zzz_game_ticket_time_text_size"/>
  116. </RelativeLayout>
  117. <View
  118. android:layout_width="match_parent"
  119. android:layout_height="1px"
  120. android:layout_alignParentBottom="true"
  121. android:layout_marginLeft="@dimen/zzz_record_item_num_margin_left"
  122. android:layout_marginRight="@dimen/zzz_record_item_channel_margin_right"
  123. android:layout_below="@+id/zzz_gift_remainder_text"
  124. android:background="@color/zzz_seperate_line_color"/>
  125. </RelativeLayout>