select_period_pop_layout.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/select_date"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="#00000000"
  7. android:gravity="bottom"
  8. android:orientation="vertical">
  9. <LinearLayout
  10. android:id="@+id/select_date_child"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:background="#ffffff"
  14. android:orientation="vertical">
  15. <RelativeLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="44dp">
  18. <TextView
  19. android:id="@+id/but_cancel"
  20. android:layout_width="wrap_content"
  21. android:layout_height="match_parent"
  22. android:layout_alignParentLeft="true"
  23. android:layout_marginRight="15dip"
  24. android:gravity="center"
  25. android:paddingLeft="12dp"
  26. android:text="取消"
  27. android:textColor="#e84515"
  28. android:textSize="13sp" />
  29. <TextView
  30. android:id="@+id/but_send"
  31. android:layout_width="wrap_content"
  32. android:layout_height="match_parent"
  33. android:layout_alignParentRight="true"
  34. android:gravity="center"
  35. android:paddingRight="12dp"
  36. android:text="完成"
  37. android:textColor="#e84515"
  38. android:textSize="12sp" />
  39. </RelativeLayout>
  40. <LinearLayout
  41. android:id="@+id/time_linear"
  42. android:layout_width="match_parent"
  43. android:layout_height="50dp"
  44. android:background="@mipmap/begin_time_bg"
  45. android:orientation="horizontal">
  46. <LinearLayout
  47. android:id="@+id/start_time_linear"
  48. android:layout_width="0dp"
  49. android:layout_height="match_parent"
  50. android:layout_weight="1"
  51. android:gravity="center"
  52. android:orientation="vertical">
  53. <TextView
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:text="开始于"
  57. android:textSize="12sp" />
  58. <TextView
  59. android:id="@+id/start_time"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:text="2018-05-19 18:18"
  63. android:textColor="#000000"
  64. android:textSize="15sp" />
  65. </LinearLayout>
  66. <LinearLayout
  67. android:id="@+id/end_time_linear"
  68. android:layout_width="0dp"
  69. android:layout_height="match_parent"
  70. android:layout_weight="1"
  71. android:gravity="center"
  72. android:orientation="vertical">
  73. <TextView
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text="结束于"
  77. android:textSize="12sp" />
  78. <TextView
  79. android:id="@+id/end_time"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:text="2018-05-19 18:18"
  83. android:textColor="#000000"
  84. android:textSize="15sp" />
  85. </LinearLayout>
  86. </LinearLayout>
  87. <RelativeLayout
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content">
  90. <LinearLayout
  91. android:id="@+id/start_linear"
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"
  94. android:orientation="horizontal">
  95. <LinearLayout
  96. android:layout_width="match_parent"
  97. android:layout_height="wrap_content"
  98. android:gravity="center_vertical"
  99. android:orientation="horizontal">
  100. <LinearLayout
  101. android:layout_width="0dp"
  102. android:layout_height="wrap_content"
  103. android:layout_weight="1"
  104. android:orientation="vertical">
  105. <TextView
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:layout_weight="1"
  109. android:gravity="center"
  110. android:paddingBottom="10dp"
  111. android:paddingTop="10dp"
  112. android:text="年"
  113. android:textColor="@android:color/black" />
  114. <com.yanyi.datelib.wheelview.WheelView
  115. android:id="@+id/start_year"
  116. android:layout_width="match_parent"
  117. android:layout_height="160dp"
  118. android:layout_gravity="center_vertical"
  119. android:layout_weight="1" />
  120. </LinearLayout>
  121. <LinearLayout
  122. android:layout_width="0dp"
  123. android:layout_height="wrap_content"
  124. android:layout_weight="1"
  125. android:orientation="vertical">
  126. <TextView
  127. android:layout_width="match_parent"
  128. android:layout_height="wrap_content"
  129. android:layout_weight="1"
  130. android:gravity="center"
  131. android:paddingBottom="10dp"
  132. android:paddingTop="10dp"
  133. android:text="月"
  134. android:textColor="@android:color/black" />
  135. <com.yanyi.datelib.wheelview.WheelView
  136. android:id="@+id/start_month"
  137. android:layout_width="match_parent"
  138. android:layout_height="160dp"
  139. android:layout_gravity="center_vertical"
  140. android:layout_weight="1" />
  141. </LinearLayout>
  142. <LinearLayout
  143. android:layout_width="0dp"
  144. android:layout_height="wrap_content"
  145. android:layout_weight="1"
  146. android:orientation="vertical">
  147. <TextView
  148. android:layout_width="match_parent"
  149. android:layout_height="wrap_content"
  150. android:layout_weight="1"
  151. android:gravity="center"
  152. android:paddingBottom="10dp"
  153. android:paddingTop="10dp"
  154. android:text="日"
  155. android:textColor="@android:color/black" />
  156. <com.yanyi.datelib.wheelview.WheelView
  157. android:id="@+id/start_day"
  158. android:layout_width="match_parent"
  159. android:layout_height="160dp"
  160. android:layout_gravity="center_vertical"
  161. android:layout_weight="1" />
  162. </LinearLayout>
  163. <LinearLayout
  164. android:id="@+id/start_hour_linear"
  165. android:layout_width="0dp"
  166. android:layout_height="wrap_content"
  167. android:layout_weight="1"
  168. android:orientation="vertical">
  169. <TextView
  170. android:layout_width="match_parent"
  171. android:layout_height="wrap_content"
  172. android:layout_weight="1"
  173. android:gravity="center"
  174. android:paddingBottom="10dp"
  175. android:paddingTop="10dp"
  176. android:text="时"
  177. android:textColor="@android:color/black" />
  178. <com.yanyi.datelib.wheelview.WheelView
  179. android:id="@+id/start_hour"
  180. android:layout_width="match_parent"
  181. android:layout_height="160dp"
  182. android:layout_gravity="center_vertical"
  183. android:layout_weight="1" />
  184. </LinearLayout>
  185. <LinearLayout
  186. android:id="@+id/start_minute_linear"
  187. android:layout_width="0dp"
  188. android:layout_height="wrap_content"
  189. android:layout_weight="1"
  190. android:orientation="vertical">
  191. <TextView
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:layout_weight="1"
  195. android:gravity="center"
  196. android:paddingBottom="10dp"
  197. android:paddingTop="10dp"
  198. android:text="分"
  199. android:textColor="@android:color/black" />
  200. <com.yanyi.datelib.wheelview.WheelView
  201. android:id="@+id/start_minute"
  202. android:layout_width="match_parent"
  203. android:layout_height="160dp"
  204. android:layout_gravity="center_vertical"
  205. android:layout_weight="1" />
  206. </LinearLayout>
  207. </LinearLayout>
  208. </LinearLayout>
  209. <LinearLayout
  210. android:id="@+id/end_linear"
  211. android:layout_width="match_parent"
  212. android:layout_height="wrap_content"
  213. android:orientation="horizontal"
  214. android:visibility="gone">
  215. <LinearLayout
  216. android:layout_width="match_parent"
  217. android:layout_height="wrap_content"
  218. android:gravity="center_vertical"
  219. android:orientation="horizontal">
  220. <LinearLayout
  221. android:layout_width="0dp"
  222. android:layout_height="wrap_content"
  223. android:layout_weight="1"
  224. android:orientation="vertical">
  225. <TextView
  226. android:layout_width="match_parent"
  227. android:layout_height="wrap_content"
  228. android:layout_weight="1"
  229. android:gravity="center"
  230. android:paddingBottom="10dp"
  231. android:paddingTop="10dp"
  232. android:text="年"
  233. android:textColor="@android:color/black" />
  234. <com.yanyi.datelib.wheelview.WheelView
  235. android:id="@+id/end_year"
  236. android:layout_width="match_parent"
  237. android:layout_height="160dp"
  238. android:layout_gravity="center_vertical"
  239. android:layout_weight="1" />
  240. </LinearLayout>
  241. <LinearLayout
  242. android:layout_width="0dp"
  243. android:layout_height="wrap_content"
  244. android:layout_weight="1"
  245. android:orientation="vertical">
  246. <TextView
  247. android:layout_width="match_parent"
  248. android:layout_height="wrap_content"
  249. android:layout_weight="1"
  250. android:gravity="center"
  251. android:paddingBottom="10dp"
  252. android:paddingTop="10dp"
  253. android:text="月"
  254. android:textColor="@android:color/black" />
  255. <com.yanyi.datelib.wheelview.WheelView
  256. android:id="@+id/end_month"
  257. android:layout_width="match_parent"
  258. android:layout_height="160dp"
  259. android:layout_gravity="center_vertical"
  260. android:layout_weight="1" />
  261. </LinearLayout>
  262. <LinearLayout
  263. android:layout_width="0dp"
  264. android:layout_height="wrap_content"
  265. android:layout_weight="1"
  266. android:orientation="vertical">
  267. <TextView
  268. android:layout_width="match_parent"
  269. android:layout_height="wrap_content"
  270. android:layout_weight="1"
  271. android:gravity="center"
  272. android:paddingBottom="10dp"
  273. android:paddingTop="10dp"
  274. android:text="日"
  275. android:textColor="@android:color/black" />
  276. <com.yanyi.datelib.wheelview.WheelView
  277. android:id="@+id/end_day"
  278. android:layout_width="match_parent"
  279. android:layout_height="160dp"
  280. android:layout_gravity="center_vertical"
  281. android:layout_weight="1" />
  282. </LinearLayout>
  283. <LinearLayout
  284. android:id="@+id/end_hour_linear"
  285. android:layout_width="0dp"
  286. android:layout_height="wrap_content"
  287. android:layout_weight="1"
  288. android:orientation="vertical">
  289. <TextView
  290. android:layout_width="match_parent"
  291. android:layout_height="wrap_content"
  292. android:layout_weight="1"
  293. android:gravity="center"
  294. android:paddingBottom="10dp"
  295. android:paddingTop="10dp"
  296. android:text="时"
  297. android:textColor="@android:color/black" />
  298. <com.yanyi.datelib.wheelview.WheelView
  299. android:id="@+id/end_hour"
  300. android:layout_width="match_parent"
  301. android:layout_height="160dp"
  302. android:layout_gravity="center_vertical"
  303. android:layout_weight="1" />
  304. </LinearLayout>
  305. <LinearLayout
  306. android:id="@+id/end_minute_linear"
  307. android:layout_width="0dp"
  308. android:layout_height="wrap_content"
  309. android:layout_weight="1"
  310. android:orientation="vertical">
  311. <TextView
  312. android:layout_width="match_parent"
  313. android:layout_height="wrap_content"
  314. android:layout_weight="1"
  315. android:gravity="center"
  316. android:paddingBottom="10dp"
  317. android:paddingTop="10dp"
  318. android:text="分"
  319. android:textColor="@android:color/black" />
  320. <com.yanyi.datelib.wheelview.WheelView
  321. android:id="@+id/end_minute"
  322. android:layout_width="match_parent"
  323. android:layout_height="160dp"
  324. android:layout_gravity="center_vertical"
  325. android:layout_weight="1" />
  326. </LinearLayout>
  327. </LinearLayout>
  328. </LinearLayout>
  329. </RelativeLayout>
  330. </LinearLayout>
  331. </LinearLayout>