1 <?xml version="1.0" encoding="utf-8"?> 2 3 <!-- 4 ~ Copyright (C) 2012 The Android Open Source Project 5 ~ 6 ~ Licensed under the Apache License, Version 2.0 (the "License"); 7 ~ you may not use this file except in compliance with the License. 8 ~ You may obtain a copy of the License at 9 ~ 10 ~ http://www.apache.org/licenses/LICENSE-2.0 11 ~ 12 ~ Unless required by applicable law or agreed to in writing, software 13 ~ distributed under the License is distributed on an "AS IS" BASIS, 14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ~ See the License for the specific language governing permissions and 16 ~ limitations under the License 17 --> 18 19 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content"> 22 23 <TextView 24 android:id="@+id/title" 25 style="?android:attr/windowTitleStyle" 26 android:layout_marginTop="24dip" 27 android:layout_marginLeft="16dip" 28 android:layout_marginRight="16dip" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:paddingLeft="4dip" 32 android:text="@string/label" /> 33 34 <EditText 35 android:id="@+id/labelBox" 36 style="@style/labelEditTextStyle" 37 android:layout_marginTop="16dip" 38 android:layout_marginBottom="24dip" 39 android:layout_marginLeft="16dip" 40 android:layout_marginRight="16dip" 41 android:layout_height="wrap_content" 42 android:layout_width="match_parent" 43 android:layout_below="@id/title" /> 44 45 <LinearLayout 46 android:layout_height="wrap_content" 47 android:layout_width="match_parent" 48 android:layout_marginLeft="16dip" 49 android:layout_marginRight="16dip" 50 android:layout_marginBottom="16dip" 51 android:layout_below="@id/labelBox"> 52 53 <Button 54 android:id="@+id/cancelButton" 55 style="?android:attr/borderlessButtonStyle" 56 android:layout_height="wrap_content" 57 android:layout_width="0dip" 58 android:layout_weight="1" 59 android:textSize="@dimen/dialog_button_font_size" 60 android:textColor="@color/clock_white" 61 android:text="@string/time_picker_cancel" /> 62 63 <Button 64 android:id="@+id/setButton" 65 style="?android:attr/borderlessButtonStyle" 66 android:layout_height="wrap_content" 67 android:layout_width="0dip" 68 android:layout_weight="1" 69 android:textSize="@dimen/dialog_button_font_size" 70 android:textColor="@color/hot_pink" 71 android:text="@string/time_picker_set" /> 72 73 </LinearLayout> 74 </RelativeLayout> 75