1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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:paddingStart="@dimen/settingslib_listPreferredItemPaddingStart"
21    android:paddingLeft="@dimen/settingslib_listPreferredItemPaddingStart"
22    android:paddingEnd="@dimen/settingslib_listPreferredItemPaddingStart"
23    android:paddingRight="@dimen/settingslib_listPreferredItemPaddingStart"
24    android:orientation="vertical">
25
26    <GridLayout
27        android:id="@+id/user_dictionary_add_word_grid"
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:columnCount="2">
31
32        <TextView
33            android:id="@+id/user_dictionary_add_word_label"
34            style="?android:attr/textAppearanceSmall"
35            android:layout_width="wrap_content"
36            android:layout_height="wrap_content"
37            android:layout_gravity="start|center_vertical"
38            android:text="@string/user_dict_settings_add_word_option_name"
39            android:textColor="?android:attr/textColorPrimary" />
40
41        <EditText
42            android:id="@+id/user_dictionary_add_word_text"
43            android:layout_height="wrap_content"
44            android:layout_gravity="fill_horizontal|center_vertical"
45            android:layout_marginBottom="8dip"
46            android:layout_marginStart="8dip"
47            android:layout_marginTop="8dip"
48            android:minHeight="@dimen/min_tap_target_size"
49            android:hint="@string/user_dict_settings_add_word_hint"
50            android:imeOptions="flagNoFullscreen"
51            android:inputType="textNoSuggestions"
52            android:maxLength="@integer/maximum_user_dictionary_word_length">
53
54            <requestFocus />
55        </EditText>
56    </GridLayout>
57
58    <GridLayout
59        android:id="@+id/user_dictionary_add_shortcut_grid"
60        android:layout_width="match_parent"
61        android:layout_height="wrap_content"
62        android:columnCount="2">
63
64        <TextView
65            android:id="@+id/user_dictionary_add_shortcut_label"
66            style="?android:attr/textAppearanceSmall"
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:layout_gravity="start|center_vertical"
70            android:text="@string/user_dict_settings_add_shortcut_option_name"
71            android:textColor="?android:attr/textColorPrimary" />
72
73        <EditText
74            android:id="@+id/user_dictionary_add_shortcut"
75            android:layout_width="wrap_content"
76            android:layout_gravity="fill_horizontal|center_vertical"
77            android:layout_marginBottom="8dip"
78            android:layout_marginStart="8dip"
79            android:layout_marginTop="8dip"
80            android:minHeight="@dimen/min_tap_target_size"
81            android:hint="@string/user_dict_settings_add_shortcut_hint"
82            android:imeOptions="flagNoFullscreen"
83            android:inputType="textNoSuggestions"
84            android:maxLength="@integer/maximum_user_dictionary_word_length" />
85    </GridLayout>
86
87</LinearLayout>
88