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="match_parent"> 22 23 <EditText 24 android:id="@+id/labelBox" 25 android:layout_marginTop="16dp" 26 android:layout_marginLeft="8dip" 27 android:layout_marginRight="8dip" 28 android:inputType="textCapSentences" 29 android:padding="8dp" 30 android:selectAllOnFocus="true" 31 android:layout_height="wrap_content" 32 android:hint="@string/label" 33 android:layout_width="match_parent"/> 34 35 <View 36 android:id="@+id/hairline" 37 android:layout_height="1dp" 38 android:layout_marginTop="16dp" 39 android:layout_width="match_parent" 40 android:layout_below="@id/labelBox" 41 android:background="#28ffffff"/> 42 43 <LinearLayout 44 android:layout_height="wrap_content" 45 android:layout_width="match_parent" 46 android:layout_below="@id/hairline"> 47 <Button 48 android:id="@+id/cancelButton" 49 android:layout_height="wrap_content" 50 android:layout_width="0dp" 51 android:layout_weight="1" 52 style="@style/dialog_button" 53 android:background="@drawable/item_background" 54 android:text="@string/time_picker_cancel" 55 /> 56 <View 57 android:layout_height="match_parent" 58 android:layout_marginTop="8dip" 59 android:layout_marginBottom="8dip" 60 android:layout_width="1dip" 61 android:background="#28ffffff"/> 62 <Button 63 android:id="@+id/setButton" 64 android:layout_height="wrap_content" 65 android:layout_width="0dp" 66 android:layout_weight="1" 67 style="@style/dialog_button" 68 android:background="@drawable/item_background" 69 android:text="@string/time_picker_set"/> 70 </LinearLayout> 71 </RelativeLayout> 72