tysdkn_item_get_gift.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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:orientation="vertical"
  6. >
  7. <TextView
  8. android:id="@+id/tysdkn_recharge_gift_tv"
  9. android:layout_width="70dp"
  10. android:layout_height="24dp"
  11. android:background="@drawable/tysdkn_gift_orange_bg"
  12. android:text="充值礼包"
  13. android:textColor="#FFFFFF"
  14. android:textSize="13sp"
  15. android:visibility="visible" />
  16. <RelativeLayout
  17. android:id="@+id/tysdkn_layout_item_gift_rv"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_marginTop="10dp"
  21. android:layout_marginLeft="10dp"
  22. android:layout_marginRight="10dp"
  23. >
  24. <LinearLayout
  25. android:id="@+id/tysdkn_ll_gift_info"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:background="@drawable/tysdkn_gift_listview_bg"
  29. android:orientation="vertical">
  30. <LinearLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="0dp"
  33. android:layout_weight="1"
  34. android:orientation="vertical">
  35. <TextView
  36. android:id="@+id/tysdkn_tv_gift_name"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_marginLeft="13dp"
  40. android:layout_marginTop="12dp"
  41. android:singleLine="true"
  42. android:maxEms="10"
  43. android:text="礼包名称"
  44. android:textColor="#111111"
  45. android:textSize="14sp" />
  46. <TextView
  47. android:id="@+id/tysdkn_gift_number_tv"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:layout_marginLeft="13dp"
  51. android:layout_marginTop="7dp"
  52. android:layout_marginRight="16dp"
  53. android:ellipsize="end"
  54. android:lines="1"
  55. android:text="剩余数量: 110"
  56. android:textColor="#666666"
  57. android:textSize="10sp" />
  58. <TextView
  59. android:id="@+id/tysdkn_tv_gift_desc"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_marginLeft="13dp"
  63. android:layout_marginTop="7dp"
  64. android:layout_marginRight="16dp"
  65. android:ellipsize="end"
  66. android:layout_marginBottom="10dp"
  67. android:lines="1"
  68. android:text="礼包描述"
  69. android:textColor="#666666"
  70. android:textSize="10sp" />
  71. </LinearLayout>
  72. </LinearLayout>
  73. <Button
  74. android:id="@+id/tysdkn_bt_gift_center"
  75. android:layout_width="41dp"
  76. android:layout_height="23dp"
  77. android:layout_alignParentRight="true"
  78. android:layout_centerVertical="true"
  79. android:layout_marginRight="13dp"
  80. android:background="@drawable/tysdkn_gift_blue_bg"
  81. android:text="领取"
  82. android:textColor="#ffffff"
  83. android:textSize="12sp" />
  84. </RelativeLayout>
  85. </LinearLayout>