view_card_task.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/fl_task"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content">
  8. <android.support.v7.widget.CardView
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_margin="@dimen/dp_10"
  12. app:cardCornerRadius="5dp"
  13. app:cardElevation="5dp">
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_margin="10dp"
  18. android:orientation="vertical"
  19. android:paddingLeft="5dp"
  20. android:paddingRight="5dp">
  21. <RelativeLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. >
  25. <ImageView
  26. android:id="@+id/iv_item_task_icon"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_alignParentLeft="true"
  30. android:layout_centerVertical="true"
  31. android:src="@drawable/icon_task"
  32. />
  33. <TextView
  34. android:id="@+id/tv_item_card_task_title"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_marginLeft="5dp"
  38. android:layout_toRightOf="@id/iv_item_task_icon"
  39. android:textColor="@color/black_404040"
  40. android:textSize="@dimen/t14"
  41. android:textStyle="bold"
  42. tools:text="标题"
  43. />
  44. <TextView
  45. android:id="@+id/tv_item_card_task_two"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_alignLeft="@id/tv_item_card_task_title"
  49. android:layout_below="@id/tv_item_card_task_title"
  50. android:layout_marginTop="2dp"
  51. android:textColor="@color/black_636363"
  52. android:textSize="@dimen/t12"
  53. tools:text="第2行第1列"
  54. />
  55. <TextView
  56. android:id="@+id/tv_item_card_task_third"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_below="@id/tv_item_card_task_title"
  60. android:layout_marginTop="2dp"
  61. android:visibility="gone"
  62. android:layout_alignParentRight="true"
  63. android:textColor="@color/black_636363"
  64. android:textSize="@dimen/t12"
  65. tools:text="第2行第2列"
  66. />
  67. </RelativeLayout>
  68. <LinearLayout
  69. android:id="@+id/ll_item_card_first"
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:layout_marginTop="2dp"
  73. android:orientation="horizontal"
  74. >
  75. <TextView
  76. android:id="@+id/tv_item_card_first_one"
  77. android:layout_width="0dp"
  78. android:layout_height="wrap_content"
  79. android:layout_weight="1"
  80. android:textColor="@color/black_636363"
  81. android:textSize="@dimen/t12"
  82. tools:text="第1行第1列"
  83. />
  84. <TextView
  85. android:id="@+id/tv_item_card_first_two"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:textColor="@color/black_636363"
  89. android:textSize="@dimen/t12"
  90. tools:text="第1行第2列"
  91. />
  92. </LinearLayout>
  93. <LinearLayout
  94. android:id="@+id/ll_item_card_second"
  95. android:layout_width="match_parent"
  96. android:layout_height="wrap_content"
  97. android:layout_marginTop="2dp"
  98. android:orientation="horizontal"
  99. android:visibility="gone"
  100. >
  101. <TextView
  102. android:id="@+id/tv_item_card_second_one"
  103. android:layout_width="0dp"
  104. android:layout_height="wrap_content"
  105. android:layout_weight="1"
  106. android:textColor="@color/black_636363"
  107. android:textSize="@dimen/t12"
  108. tools:text="第2行第1列"
  109. />
  110. <TextView
  111. android:id="@+id/tv_item_card_second_two"
  112. android:layout_width="wrap_content"
  113. android:layout_height="wrap_content"
  114. android:textColor="@color/black_636363"
  115. android:textSize="@dimen/t12"
  116. tools:text="第2行第2列"
  117. />
  118. </LinearLayout>
  119. <LinearLayout
  120. android:id="@+id/ll_item_card_third"
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:layout_marginTop="2dp"
  124. android:orientation="horizontal"
  125. android:visibility="gone"
  126. >
  127. <TextView
  128. android:id="@+id/tv_item_card_third_one"
  129. android:layout_width="0dp"
  130. android:layout_height="wrap_content"
  131. android:layout_weight="1"
  132. android:textColor="@color/black_636363"
  133. android:textSize="@dimen/t12"
  134. tools:text="第3行第1列"
  135. />
  136. <TextView
  137. android:id="@+id/tv_item_card_third_two"
  138. android:layout_width="wrap_content"
  139. android:layout_height="wrap_content"
  140. android:textColor="@color/black_636363"
  141. android:textSize="@dimen/t12"
  142. tools:text="第3行第2列"
  143. />
  144. </LinearLayout>
  145. <LinearLayout
  146. android:id="@+id/ll_item_card_fourth"
  147. android:layout_width="match_parent"
  148. android:layout_height="wrap_content"
  149. android:layout_marginTop="2dp"
  150. android:orientation="horizontal"
  151. android:visibility="gone"
  152. >
  153. <TextView
  154. android:id="@+id/tv_item_card_fourth_one"
  155. android:layout_width="0dp"
  156. android:layout_height="wrap_content"
  157. android:layout_weight="1"
  158. android:textColor="@color/black_636363"
  159. android:textSize="@dimen/t12"
  160. tools:text="第4行第1列"
  161. />
  162. <TextView
  163. android:id="@+id/tv_item_card_fourth_two"
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"
  166. android:textColor="@color/black_636363"
  167. android:textSize="@dimen/t12"
  168. tools:text="第4行第2列"
  169. />
  170. </LinearLayout>
  171. <LinearLayout
  172. android:id="@+id/ll_item_card_fifth"
  173. android:layout_width="match_parent"
  174. android:layout_height="wrap_content"
  175. android:layout_marginTop="2dp"
  176. android:orientation="horizontal"
  177. android:visibility="gone"
  178. >
  179. <TextView
  180. android:id="@+id/tv_item_card_fifth_one"
  181. android:layout_width="0dp"
  182. android:layout_height="wrap_content"
  183. android:layout_weight="1"
  184. android:textColor="@color/black_636363"
  185. android:textSize="@dimen/t12"
  186. tools:text="第5行第1列"
  187. />
  188. <TextView
  189. android:id="@+id/tv_item_card_fifth_two"
  190. android:layout_width="wrap_content"
  191. android:layout_height="wrap_content"
  192. android:textColor="@color/black_636363"
  193. android:textSize="@dimen/t12"
  194. tools:text="第5行第2列"
  195. />
  196. </LinearLayout>
  197. </LinearLayout>
  198. </android.support.v7.widget.CardView>
  199. </FrameLayout>