Satoshi Kataoka | a79ba8a | 2013-04-24 17:43:26 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2013 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" |
| 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" > |
| 21 | |
| 22 | <LinearLayout |
| 23 | android:layout_width="match_parent" |
| 24 | android:layout_height="wrap_content" |
| 25 | android:orientation="vertical" > |
| 26 | |
| 27 | <com.android.internal.widget.DialogTitle |
| 28 | style="?android:attr/windowTitleStyle" |
| 29 | android:layout_width="match_parent" |
| 30 | android:layout_height="64dip" |
| 31 | android:layout_marginEnd="16dip" |
| 32 | android:layout_marginStart="16dip" |
| 33 | android:ellipsize="end" |
| 34 | android:gravity="center_vertical|start" |
| 35 | android:singleLine="true" |
| 36 | android:text="@string/user_dict_settings_add_dialog_title" /> |
| 37 | |
| 38 | <View |
| 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="2dip" |
| 41 | android:background="@android:color/holo_blue_light" /> |
| 42 | </LinearLayout> |
| 43 | |
| 44 | <EditText |
| 45 | android:id="@+id/user_dictionary_add_word_text" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="match_parent" |
| 48 | android:layout_gravity="fill_horizontal|center_vertical" |
| 49 | android:layout_marginBottom="8dip" |
| 50 | android:layout_marginStart="8dip" |
| 51 | android:layout_marginTop="8dip" |
| 52 | android:hint="@string/user_dict_settings_add_word_hint" |
| 53 | android:imeOptions="flagNoFullscreen" |
| 54 | android:inputType="textNoSuggestions" |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 55 | android:maxLength="@integer/config_user_dictionary_max_word_length" > |
Satoshi Kataoka | a79ba8a | 2013-04-24 17:43:26 +0900 | [diff] [blame] | 56 | |
| 57 | <requestFocus /> |
| 58 | </EditText> |
| 59 | |
| 60 | <LinearLayout |
Jean Chalard | b11339b | 2014-01-08 16:52:04 +0900 | [diff] [blame] | 61 | style="?android:attr/buttonBarStyle" |
Satoshi Kataoka | a79ba8a | 2013-04-24 17:43:26 +0900 | [diff] [blame] | 62 | android:layout_width="match_parent" |
| 63 | android:layout_height="wrap_content" |
Jean Chalard | b11339b | 2014-01-08 16:52:04 +0900 | [diff] [blame] | 64 | android:measureWithLargestChild="true" |
| 65 | android:orientation="horizontal" > |
Satoshi Kataoka | a79ba8a | 2013-04-24 17:43:26 +0900 | [diff] [blame] | 66 | |
Jean Chalard | b11339b | 2014-01-08 16:52:04 +0900 | [diff] [blame] | 67 | <Button |
| 68 | style="?android:attr/buttonBarButtonStyle" |
| 69 | android:layout_width="0dip" |
Satoshi Kataoka | a79ba8a | 2013-04-24 17:43:26 +0900 | [diff] [blame] | 70 | android:layout_height="wrap_content" |
Jean Chalard | b11339b | 2014-01-08 16:52:04 +0900 | [diff] [blame] | 71 | android:layout_gravity="start" |
| 72 | android:layout_weight="1" |
| 73 | android:maxLines="2" |
| 74 | android:onClick="onClickCancel" |
| 75 | android:text="@string/cancel" |
| 76 | android:textSize="14sp" /> |
Satoshi Kataoka | a79ba8a | 2013-04-24 17:43:26 +0900 | [diff] [blame] | 77 | |
Jean Chalard | b11339b | 2014-01-08 16:52:04 +0900 | [diff] [blame] | 78 | <Button |
| 79 | style="?android:attr/buttonBarButtonStyle" |
| 80 | android:layout_width="0dip" |
| 81 | android:layout_height="wrap_content" |
| 82 | android:layout_gravity="end" |
| 83 | android:layout_weight="1" |
| 84 | android:maxLines="2" |
| 85 | android:onClick="onClickConfirm" |
| 86 | android:text="@string/user_dict_settings_add_dialog_confirm" |
| 87 | android:textSize="14sp" /> |
Satoshi Kataoka | a79ba8a | 2013-04-24 17:43:26 +0900 | [diff] [blame] | 88 | </LinearLayout> |
| 89 | |
| 90 | </LinearLayout> |