blob: 615fde589e278b0ba2cfce4539c36f3b7f9e3aa2 [file] [log] [blame]
Satoshi Kataokaa79ba8a2013-04-24 17:43:26 +09001<?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 Wakasa2fa36932013-12-13 17:09:16 +090055 android:maxLength="@integer/config_user_dictionary_max_word_length" >
Satoshi Kataokaa79ba8a2013-04-24 17:43:26 +090056
57 <requestFocus />
58 </EditText>
59
60 <LinearLayout
Jean Chalardb11339b2014-01-08 16:52:04 +090061 style="?android:attr/buttonBarStyle"
Satoshi Kataokaa79ba8a2013-04-24 17:43:26 +090062 android:layout_width="match_parent"
63 android:layout_height="wrap_content"
Jean Chalardb11339b2014-01-08 16:52:04 +090064 android:measureWithLargestChild="true"
65 android:orientation="horizontal" >
Satoshi Kataokaa79ba8a2013-04-24 17:43:26 +090066
Jean Chalardb11339b2014-01-08 16:52:04 +090067 <Button
68 style="?android:attr/buttonBarButtonStyle"
69 android:layout_width="0dip"
Satoshi Kataokaa79ba8a2013-04-24 17:43:26 +090070 android:layout_height="wrap_content"
Jean Chalardb11339b2014-01-08 16:52:04 +090071 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 Kataokaa79ba8a2013-04-24 17:43:26 +090077
Jean Chalardb11339b2014-01-08 16:52:04 +090078 <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 Kataokaa79ba8a2013-04-24 17:43:26 +090088 </LinearLayout>
89
90</LinearLayout>