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