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:layout_width="match_parent" 33 android:layout_height="0dip" 34 android:layout_weight="1" 35 android:background="@color/white" > 36 <include 37 layout="@layout/time_header_label" 38 android:layout_width="match_parent" 39 android:layout_height="@dimen/header_height" 40 android:layout_gravity="center" /> 41 </FrameLayout> 42 <View 43 android:layout_width="match_parent" 44 android:layout_height="1dip" 45 android:background="@color/line_background" /> 46 <LinearLayout 47 style="?android:attr/buttonBarStyle" 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:orientation="horizontal" 51 android:background="@color/white" > 52 <Button 53 android:id="@+id/done_button" 54 style="?android:attr/buttonBarButtonStyle" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:minHeight="48dp" 58 android:text="@string/done_label" 59 android:textSize="@dimen/done_label_size" 60 android:textColor="@color/done_text_color" /> 61 </LinearLayout> 62 </LinearLayout> 63 <com.android.datetimepicker.time.RadialPickerLayout 64 android:id="@+id/time_picker" 65 android:layout_width="@dimen/picker_dimen" 66 android:layout_height="match_parent" 67 android:layout_gravity="center" 68 android:focusable="true" 69 android:focusableInTouchMode="true" 70 android:background="@color/circle_background" /> 71 </LinearLayout> 72