date_view.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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/date_bg"
  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:textSize="20sp"></TextView>
  33. <TextView
  34. android:id="@+id/date_title"
  35. android:layout_width="0dp"
  36. android:layout_height="match_parent"
  37. android:layout_weight="1"
  38. android:gravity="center"
  39. android:text="生日选择"
  40. android:textColor="#ff188ef7"
  41. android:textSize="22sp"></TextView>
  42. <TextView
  43. android:id="@+id/date_ok"
  44. android:layout_width="0dp"
  45. android:layout_height="match_parent"
  46. android:layout_weight="1"
  47. android:gravity="center"
  48. android:text="确认"
  49. android:textColor="#ffff9a31"
  50. android:textSize="20sp"></TextView>
  51. </LinearLayout>
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="0dp"
  55. android:layout_gravity="center"
  56. android:layout_weight="1.8"
  57. android:orientation="horizontal">
  58. <com.cncoderx.wheelview.WheelView
  59. android:id="@+id/date_whell_y"
  60. android:layout_width="0dp"
  61. android:layout_height="match_parent"
  62. android:layout_weight="1"
  63. app:wheelCyclic="true"
  64. app:wheelItemCount="3"
  65. app:wheelSelectedTextColor="#000000"
  66. app:wheelTextColor="#9E9E9E" />
  67. <com.cncoderx.wheelview.WheelView
  68. android:id="@+id/date_whell_m"
  69. android:layout_width="0dp"
  70. android:layout_height="match_parent"
  71. android:layout_weight="1"
  72. app:wheelCyclic="true"
  73. app:wheelItemCount="3"
  74. app:wheelSelectedTextColor="#000000"
  75. app:wheelTextColor="#9E9E9E" />
  76. <com.cncoderx.wheelview.WheelView
  77. android:id="@+id/date_whell_d"
  78. android:layout_width="0dp"
  79. android:layout_height="match_parent"
  80. android:layout_weight="1"
  81. app:wheelCyclic="true"
  82. app:wheelItemCount="3"
  83. app:wheelSelectedTextColor="#000000"
  84. app:wheelTextColor="#9E9E9E" />
  85. </LinearLayout>
  86. <Space
  87. android:layout_width="wrap_content"
  88. android:layout_height="0dp"
  89. android:layout_weight="0.2"></Space>
  90. </LinearLayout>
  91. </FrameLayout>