blob: ea6708ee728efdade26b73f752f6a4df971d8b96 [file] [log] [blame]
Tadashi G. Takaoka86e815a2011-06-14 16:28:57 +09001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2011, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11** http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<merge
22 xmlns:android="http://schemas.android.com/apk/res/android"
23 xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
24>
Tadashi G. Takaoka86e815a2011-06-14 16:28:57 +090025 <LinearLayout
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090026 android:id="@+id/candidates_strip"
Tadashi G. Takaokab4731982011-06-26 03:00:51 +090027 android:orientation="horizontal"
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090028 android:layout_width="match_parent"
Tadashi G. Takaoka7fb04fe2011-06-26 02:07:07 +090029 android:layout_height="match_parent"
Tadashi G. Takaoka86e815a2011-06-14 16:28:57 +090030 >
Tadashi G. Takaoka2442e772011-06-24 14:19:59 +090031 <RelativeLayout
32 android:layout_weight="1.0"
33 android:layout_width="0dp"
34 android:layout_height="match_parent"
35 android:gravity="center"
36 >
37 <include
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090038 android:id="@+id/word_left"
Tadashi G. Takaoka2442e772011-06-24 14:19:59 +090039 layout="@layout/candidate_word" />
40 <include
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090041 android:id="@+id/info_left"
Tadashi G. Takaoka2442e772011-06-24 14:19:59 +090042 layout="@layout/candidate_info" />
43 </RelativeLayout>
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090044 <include
45 layout="@layout/candidate_divider" />
46 <RelativeLayout
47 android:layout_weight="1.0"
48 android:layout_width="0dp"
49 android:layout_height="match_parent"
50 android:gravity="center"
51 >
52 <include
53 android:id="@+id/word_center"
54 layout="@layout/candidate_word" />
55 <include
56 android:id="@+id/info_center"
57 layout="@layout/candidate_info" />
58 </RelativeLayout>
59 <include
60 layout="@layout/candidate_divider" />
61 <LinearLayout
62 android:orientation="horizontal"
63 android:layout_weight="1.0"
64 android:layout_width="0dp"
65 android:layout_height="match_parent"
66 android:gravity="center_vertical"
67 >
68 <RelativeLayout
69 android:layout_weight="1.0"
70 android:layout_width="0dp"
71 android:layout_height="match_parent"
72 android:gravity="center"
73 >
74 <include
75 android:id="@+id/word_right"
76 layout="@layout/candidate_word" />
77 <include
78 android:id="@+id/info_right"
79 layout="@layout/candidate_info" />
80 </RelativeLayout>
81 <!-- Image drawables are set in CandidateView constructor -->
82 <ImageButton
83 android:id="@+id/expand_candidates_pane"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:visibility="gone"
Tadashi G. Takaokab4731982011-06-26 03:00:51 +090087 android:background="@null" />
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090088 <ImageButton
89 android:id="@+id/close_candidates_pane"
90 android:layout_width="wrap_content"
91 android:layout_height="wrap_content"
92 android:visibility="gone"
Tadashi G. Takaokab4731982011-06-26 03:00:51 +090093 android:background="@null" />
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090094 </LinearLayout>
95 </LinearLayout>
96 <LinearLayout
97 android:id="@+id/touch_to_save"
98 android:orientation="horizontal"
99 android:layout_width="match_parent"
100 android:layout_height="match_parent"
101 android:visibility="gone"
102 >
103 <Button
104 android:id="@+id/word_to_save"
105 android:layout_weight="1.0"
106 android:layout_width="0dp"
107 android:layout_height="match_parent"
Tadashi G. Takaokab4731982011-06-26 03:00:51 +0900108 android:layout_gravity="center_vertical"
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +0900109 android:textSize="@dimen/candidate_text_size"
110 android:singleLine="true"
111 android:ellipsize="middle"
112 style="?attr/suggestionBackgroundStyle" />
113 <include
114 layout="@layout/candidate_divider" />
115 <TextView
116 android:layout_weight="2.0"
117 android:layout_width="0dp"
118 android:layout_height="match_parent"
119 android:gravity="left|center_vertical"
120 android:text="@string/hint_add_to_dictionary"
121 android:textSize="@dimen/candidate_text_size"
122 android:background="@null" />
Tadashi G. Takaoka86e815a2011-06-14 16:28:57 +0900123 </LinearLayout>
124</merge>