time_picker_dialog.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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_height="@dimen/dialog_height"
  20. android:layout_width="wrap_content"
  21. android:orientation="horizontal"
  22. android:focusable="true"
  23. android:layout_marginLeft="@dimen/minimum_margin_sides"
  24. android:layout_marginRight="@dimen/minimum_margin_sides"
  25. android:layout_marginTop="@dimen/minimum_margin_top_bottom"
  26. android:layout_marginBottom="@dimen/minimum_margin_top_bottom" >
  27. <LinearLayout
  28. android:layout_width="@dimen/left_side_width"
  29. android:layout_height="match_parent"
  30. android:orientation="vertical">
  31. <FrameLayout
  32. android:id="@+id/time_display_background"
  33. android:layout_width="match_parent"
  34. android:layout_height="0dip"
  35. android:layout_weight="1"
  36. android:background="@android:color/white" >
  37. <include
  38. layout="@layout/time_header_label"
  39. android:layout_width="match_parent"
  40. android:layout_height="@dimen/header_height"
  41. android:layout_gravity="center" />
  42. </FrameLayout>
  43. <View
  44. android:id="@+id/line"
  45. android:layout_width="match_parent"
  46. android:layout_height="1dip"
  47. android:background="@color/line_background" />
  48. <Button
  49. android:id="@+id/done_button"
  50. android:background="@drawable/done_background_color"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:minHeight="48dp"
  54. android:text="@string/done_label"
  55. android:textSize="@dimen/done_label_size"
  56. android:textColor="@color/done_text_color" />
  57. </LinearLayout>
  58. <com.android.datetimepicker.time.RadialPickerLayout
  59. android:id="@+id/time_picker"
  60. android:layout_width="@dimen/picker_dimen"
  61. android:layout_height="match_parent"
  62. android:layout_gravity="center"
  63. android:focusable="true"
  64. android:focusableInTouchMode="true"
  65. android:background="@color/circle_background" />
  66. </LinearLayout>