item_layout.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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:orientation="horizontal"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:padding="4dp">
  8. <ImageView
  9. android:id="@+id/new_pic"
  10. android:layout_width="64dp"
  11. android:layout_height="64dp"
  12. android:src="@mipmap/ic_launcher"/>
  13. <LinearLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:orientation="vertical">
  17. <LinearLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_weight="1.5"
  21. android:orientation="horizontal">
  22. <TextView
  23. android:id="@+id/new_title"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:text="Title"
  27. android:layout_weight="1"
  28. android:layout_gravity="center"
  29. android:textSize="20sp"/>
  30. <TextView
  31. android:id="@+id/new_time"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="2019-12-28 12:46:00"
  35. android:layout_gravity="center"
  36. android:textSize="13sp"/>
  37. </LinearLayout>
  38. <TextView
  39. android:id="@+id/new_desc"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:text="desc"
  43. android:layout_weight="1"
  44. android:textSize="15sp"/>
  45. <TextView
  46. android:id="@+id/new_content"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:text="content"
  50. android:visibility="gone"/>
  51. </LinearLayout>
  52. </LinearLayout>