time_picker_dialog.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ~ Copyright (C) 2013 The Android Open Source Project
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License
  16. -->
  17. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  18. android:id="@+id/time_picker_dialog"
  19. android:layout_width="wrap_content"
  20. android:layout_height="match_parent"
  21. android:orientation="vertical"
  22. android:focusable="true" >
  23. <FrameLayout
  24. android:id="@+id/time_display_background"
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:background="@android:color/white" >
  28. <include
  29. layout="@layout/time_header_label"
  30. android:layout_width="match_parent"
  31. android:layout_height="@dimen/header_height"
  32. android:layout_gravity="center" />
  33. </FrameLayout>
  34. <com.android.datetimepicker.time.RadialPickerLayout
  35. android:id="@+id/time_picker"
  36. android:layout_height="@dimen/picker_dimen"
  37. android:layout_width="wrap_content"
  38. android:layout_gravity="center"
  39. android:background="@color/circle_background"
  40. android:focusable="true"
  41. android:focusableInTouchMode="true" />
  42. <View
  43. android:id="@+id/line"
  44. android:layout_width="match_parent"
  45. android:layout_height="1dip"
  46. android:background="@color/line_background" />
  47. <Button
  48. android:id="@+id/done_button"
  49. android:background="@drawable/done_background_color"
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:minHeight="48dp"
  53. android:text="@string/done_label"
  54. android:textSize="@dimen/done_label_size"
  55. android:textColor="@color/done_text_color" />
  56. </LinearLayout>