Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 17 | android:id="@+id/user_dict_settings_add_dialog_top" |
| 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="wrap_content" |
| 20 | android:orientation="vertical"> |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 21 | |
| 22 | <LinearLayout android:layout_width="match_parent" |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 23 | android:layout_height="wrap_content" |
| 24 | android:orientation="vertical"> |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 25 | <com.android.internal.widget.DialogTitle |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 26 | style="?android:attr/windowTitleStyle" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="wrap_content" |
| 29 | android:layout_marginStart="24dip" |
| 30 | android:layout_marginEnd="24dip" |
| 31 | android:layout_marginTop="24dip" |
| 32 | android:layout_marginBottom="0dip" |
| 33 | android:ellipsize="end" |
| 34 | android:gravity="center_vertical|start" |
| 35 | android:singleLine="true" |
| 36 | android:text="@string/user_dict_settings_add_dialog_title" /> |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 37 | </LinearLayout> |
| 38 | |
Jean Chalard | ac499c3 | 2012-05-08 20:25:00 +0900 | [diff] [blame] | 39 | <EditText android:id="@+id/user_dictionary_add_word_text" |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 40 | android:layout_width="match_parent" |
| 41 | android:layout_height="match_parent" |
| 42 | android:layout_gravity="fill_horizontal|center_vertical" |
| 43 | android:layout_marginStart="24dip" |
| 44 | android:layout_marginEnd="24dip" |
| 45 | android:layout_marginTop="20dip" |
| 46 | android:layout_marginBottom="24dip" |
| 47 | android:hint="@string/user_dict_settings_add_word_hint" |
| 48 | android:imeOptions="flagNoFullscreen" |
| 49 | android:inputType="textNoSuggestions" |
| 50 | android:maxLength="@integer/maximum_user_dictionary_word_length"> |
Jean Chalard | ac499c3 | 2012-05-08 20:25:00 +0900 | [diff] [blame] | 51 | <requestFocus /> |
| 52 | </EditText> |
Jean Chalard | 60bca71 | 2011-12-05 18:01:52 +0900 | [diff] [blame] | 53 | |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 54 | <LinearLayout android:layout_width="match_parent" |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 55 | android:layout_height="wrap_content" |
| 56 | android:divider="?android:attr/dividerHorizontal" |
| 57 | android:dividerPadding="0dip" |
| 58 | android:orientation="vertical" |
| 59 | android:showDividers="beginning"> |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 60 | <LinearLayout style="?android:attr/buttonBarStyle" |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 61 | android:layout_width="match_parent" |
| 62 | android:layout_height="wrap_content" |
| 63 | android:gravity="end" |
| 64 | android:orientation="horizontal"> |
| 65 | <Button style="?android:attr/buttonBarButtonStyle" |
| 66 | android:layout_width="wrap_content" |
| 67 | android:layout_height="36dip" |
| 68 | android:layout_marginTop="8dip" |
| 69 | android:layout_marginBottom="8dip" |
| 70 | android:layout_marginLeft="8dip" |
| 71 | android:layout_marginRight="0dip" |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 72 | android:maxLines="2" |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 73 | android:onClick="onClickCancel" |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 74 | android:textSize="14sp" |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 75 | android:text="@string/cancel" /> |
| 76 | <Button style="?android:attr/buttonBarButtonStyle" |
| 77 | android:layout_width="wrap_content" |
| 78 | android:layout_height="36dip" |
| 79 | android:layout_margin="8dip" |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 80 | android:maxLines="2" |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 81 | android:onClick="onClickConfirm" |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 82 | android:textSize="14sp" |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 83 | android:text="@string/user_dict_settings_add_dialog_confirm" /> |
Jean Chalard | e17eefa | 2011-12-02 14:56:39 +0900 | [diff] [blame] | 84 | </LinearLayout> |
| 85 | </LinearLayout> |
Salvador Martinez | cdb0f56 | 2016-08-15 16:59:30 -0700 | [diff] [blame] | 86 | </LinearLayout> |