tysdkn_item_news.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. android:padding="5dp"
  8. android:paddingBottom="3dp"
  9. android:paddingLeft="6dp"
  10. android:paddingRight="6dp"
  11. android:paddingTop="3dp">
  12. <RelativeLayout
  13. android:id="@+id/tysdkn_rl_news"
  14. android:layout_width="match_parent"
  15. android:layout_height="75dp"
  16. android:background="@drawable/tysdkn_gift_listview_bg"
  17. >
  18. <ImageView
  19. android:id="@+id/tysdkn_iv_news_red"
  20. android:layout_width="5dp"
  21. android:layout_height="5dp"
  22. android:layout_marginLeft="5dp"
  23. android:layout_alignParentRight="true"
  24. android:src="@drawable/tysdkn_red_p"
  25. android:visibility="invisible"
  26. tools:visibility="visible" />
  27. <TextView
  28. android:id="@+id/tysdkn_tv_item_news_title"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:layout_marginLeft="10dp"
  32. android:layout_marginRight="10dp"
  33. android:layout_marginTop="15dp"
  34. android:maxEms="10"
  35. android:ellipsize="end"
  36. android:lines="1"
  37. android:text="公告标题"
  38. android:textColor="#111111"
  39. android:textSize="14sp"
  40. />
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:layout_alignParentBottom="true"
  45. android:layout_marginBottom="12dp"
  46. android:layout_marginLeft="10dp"
  47. android:orientation="horizontal">
  48. <!--<LinearLayout-->
  49. <!--android:layout_width="0dp"-->
  50. <!--android:layout_height="wrap_content"-->
  51. <!--android:layout_marginRight="10dp"-->
  52. <!--android:layout_weight="1">-->
  53. <TextView
  54. android:id="@+id/tysdkn_tv_item_news_date"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:layout_gravity="center_vertical"
  58. android:layout_marginRight="5dp"
  59. android:text="日期"
  60. android:textColor="#666666"
  61. android:textSize="10sp" />
  62. <TextView
  63. android:id="@+id/tysdkn_tv_system_icon"
  64. android:layout_width="30dp"
  65. android:layout_height="18dp"
  66. android:gravity="center"
  67. android:text="[系统]"
  68. android:textColor="#30B8FF"
  69. android:textSize="10sp" />
  70. <!--</LinearLayout>-->
  71. </LinearLayout>
  72. <TextView
  73. android:id="@+id/tysdkn_news_see_tv"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:textColor="#FFFFFF"
  77. android:textSize="12sp"
  78. android:layout_alignParentRight="true"
  79. android:layout_marginRight="13dp"
  80. android:layout_centerVertical="true"
  81. android:background="@drawable/tysdkn_gift_blue_bg"
  82. android:text="查看"/>
  83. </RelativeLayout>
  84. </LinearLayout>