date_view.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="#A6000000"
  7. android:clickable="true">
  8. <!-- <ImageView-->
  9. <!-- android:id="@+id/date_back"-->
  10. <!-- android:layout_width="31.5dp"-->
  11. <!-- android:layout_height="31.5dp"-->
  12. <!-- android:layout_marginLeft="41.5dp"-->
  13. <!-- android:layout_marginTop="36dp"-->
  14. <!-- android:src="@drawable/back"></ImageView>-->
  15. <LinearLayout
  16. android:layout_width="433.5dp"
  17. android:layout_height="224.5dp"
  18. android:layout_gravity="center"
  19. android:background="@drawable/shape_corner_date"
  20. android:orientation="vertical">
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="0dp"
  24. android:layout_weight="1">
  25. <TextView
  26. android:id="@+id/date_cancel"
  27. android:layout_width="0dp"
  28. android:layout_height="match_parent"
  29. android:layout_weight="1"
  30. android:gravity="center"
  31. android:text="取消"
  32. android:textColor="#2CBCFF"
  33. android:textSize="22sp"
  34. android:textStyle="bold"></TextView>
  35. <TextView
  36. android:id="@+id/date_title"
  37. android:layout_width="0dp"
  38. android:layout_height="match_parent"
  39. android:layout_weight="1"
  40. android:gravity="center"
  41. android:text="生日选择"
  42. android:textColor="@color/black"
  43. android:textSize="22sp"
  44. android:textStyle="bold"></TextView>
  45. <TextView
  46. android:id="@+id/date_ok"
  47. android:layout_width="0dp"
  48. android:layout_height="match_parent"
  49. android:layout_weight="1"
  50. android:gravity="center"
  51. android:text="确认"
  52. android:textColor="#ffff9a31"
  53. android:textSize="22sp"
  54. android:textStyle="bold"></TextView>
  55. </LinearLayout>
  56. <LinearLayout
  57. android:layout_width="match_parent"
  58. android:layout_height="0dp"
  59. android:layout_gravity="center"
  60. android:layout_weight="1.8"
  61. android:orientation="horizontal">
  62. <com.cncoderx.wheelview.WheelView
  63. android:id="@+id/date_whell_y"
  64. android:layout_width="0dp"
  65. android:layout_height="match_parent"
  66. android:layout_weight="1"
  67. app:wheelCyclic="true"
  68. app:wheelItemCount="3"
  69. app:wheelSelectedTextColor="#000000"
  70. app:wheelTextColor="#9E9E9E" />
  71. <com.cncoderx.wheelview.WheelView
  72. android:id="@+id/date_whell_m"
  73. android:layout_width="0dp"
  74. android:layout_height="match_parent"
  75. android:layout_weight="1"
  76. app:wheelCyclic="true"
  77. app:wheelItemCount="3"
  78. app:wheelSelectedTextColor="#000000"
  79. app:wheelTextColor="#9E9E9E" />
  80. <com.cncoderx.wheelview.WheelView
  81. android:id="@+id/date_whell_d"
  82. android:layout_width="0dp"
  83. android:layout_height="match_parent"
  84. android:layout_weight="1"
  85. app:wheelCyclic="true"
  86. app:wheelItemCount="3"
  87. app:wheelSelectedTextColor="#000000"
  88. app:wheelTextColor="#9E9E9E" />
  89. </LinearLayout>
  90. <Space
  91. android:layout_width="wrap_content"
  92. android:layout_height="0dp"
  93. android:layout_weight="0.2"></Space>
  94. </LinearLayout>
  95. </FrameLayout>