zzz_game_ticket_item.xml 5.9 KB

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