pickerview_time.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="wrap_content"
  4. android:layout_height="wrap_content"
  5. android:orientation="vertical">
  6. <include
  7. layout="@layout/include_pickerview_topbar"
  8. android:layout_width="match_parent"
  9. android:layout_height="@dimen/pickerview_topbar_height"/>
  10. <LinearLayout
  11. android:id="@+id/timepicker"
  12. android:layout_width="fill_parent"
  13. android:layout_height="match_parent"
  14. android:background="@android:color/white"
  15. android:orientation="horizontal">
  16. <com.jiaju.widget.WheelView
  17. android:id="@+id/year"
  18. android:layout_width="fill_parent"
  19. android:layout_gravity="center"
  20. android:layout_height="match_parent"
  21. android:layout_weight="1" />
  22. <com.jiaju.widget.WheelView
  23. android:id="@+id/month"
  24. android:layout_width="match_parent"
  25. android:layout_gravity="center"
  26. android:layout_height="match_parent"
  27. android:layout_weight="1" />
  28. <com.jiaju.widget.WheelView
  29. android:id="@+id/day"
  30. android:layout_width="match_parent"
  31. android:layout_gravity="center"
  32. android:layout_height="match_parent"
  33. android:layout_weight="1" />
  34. <com.jiaju.widget.WheelView
  35. android:id="@+id/hour"
  36. android:layout_width="fill_parent"
  37. android:layout_gravity="center"
  38. android:layout_height="match_parent"
  39. android:layout_weight="1" />
  40. <com.jiaju.widget.WheelView
  41. android:id="@+id/min"
  42. android:layout_width="fill_parent"
  43. android:layout_gravity="center"
  44. android:layout_height="match_parent"
  45. android:layout_weight="1" />
  46. </LinearLayout>
  47. </LinearLayout>