contentitem.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- 列表item view -->
  3. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="fill_parent"
  5. android:layout_height="wrap_content"
  6. android:background="#FFFFFF"
  7. android:orientation="horizontal" >
  8. <ImageView
  9. android:id="@+id/icon"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:layout_centerVertical="true"
  13. android:layout_margin="10dp"
  14. android:src="@drawable/ic_launcher" />
  15. <LinearLayout
  16. android:id="@+id/linearlayout1"
  17. android:layout_width="wrap_content"
  18. android:layout_height="fill_parent"
  19. android:layout_toRightOf="@+id/icon"
  20. android:layout_toLeftOf="@+id/linearlayout2"
  21. android:orientation="vertical" >
  22. <TextView
  23. android:id="@+id/name"
  24. android:layout_width="fill_parent"
  25. android:layout_height="wrap_content"
  26. android:ellipsize="none"
  27. android:gravity="center_vertical"
  28. android:text="百度公寓地方送id金佛Iio大家佛就是都放假哦的积分愤怒的送in罚款决定能否拿到家咖啡"
  29. android:textColor="@color/contents_text"
  30. android:textSize="18dip" />
  31. <TextView
  32. android:id="@+id/addr"
  33. android:layout_width="fill_parent"
  34. android:layout_height="wrap_content"
  35. android:ellipsize="none"
  36. android:gravity="center_vertical"
  37. android:text="上地7街丰富的送if接哦id积极的佛I惊悚的"
  38. android:textColor="@color/contents_text"
  39. android:textSize="14dp"
  40. android:visibility="visible" />
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content" >
  44. <TextView
  45. android:id="@+id/toggle_text1"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:text="出租类型:"
  49. android:textAppearance="?android:attr/textAppearanceSmall"
  50. android:textColor="@color/contents_text"
  51. android:textSize="14dp" />
  52. <TextView
  53. android:id="@+id/leaseType"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:textAppearance="?android:attr/textAppearanceSmall"
  57. android:textColor="@color/contents_text"
  58. android:textSize="14dp" />
  59. </LinearLayout>
  60. <TextView
  61. android:id="@+id/distance"
  62. android:layout_width="fill_parent"
  63. android:layout_height="wrap_content"
  64. android:gravity="center_vertical"
  65. android:text="距离300米"
  66. android:textColor="@color/contents_text"
  67. android:textSize="14dp" />
  68. </LinearLayout>
  69. <LinearLayout
  70. android:id="@+id/linearlayout2"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:layout_alignParentRight="true"
  74. android:layout_centerVertical="true"
  75. android:orientation="vertical"
  76. android:paddingLeft="10dp"
  77. android:paddingRight="10dp" >
  78. <TextView
  79. android:id="@+id/price"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:layout_gravity="center"
  83. android:enabled="true"
  84. android:maxLines="2"
  85. android:text="300"
  86. android:textColor="@color/red"
  87. android:textSize="22dp" />
  88. <TextView
  89. android:id="@+id/TextView01"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_gravity="center"
  93. android:enabled="true"
  94. android:maxLines="2"
  95. android:text="元/晚"
  96. android:textColor="@color/red"
  97. android:textSize="22dp" />
  98. </LinearLayout>
  99. </RelativeLayout>