blob: 3509a4815cd668f0e4e6d88e5afe9a20a40d5e34 [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"
27 android:layout_width="match_parent"
Tadashi G. Takaoka7fb04fe2011-06-26 02:07:07 +090028 android:layout_height="match_parent"
Tadashi G. Takaoka86e815a2011-06-14 16:28:57 +090029 >
Tadashi G. Takaoka2442e772011-06-24 14:19:59 +090030 <RelativeLayout
31 android:layout_weight="1.0"
32 android:layout_width="0dp"
33 android:layout_height="match_parent"
34 android:gravity="center"
35 >
36 <include
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090037 android:id="@+id/word_left"
Tadashi G. Takaoka2442e772011-06-24 14:19:59 +090038 layout="@layout/candidate_word" />
39 <include
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090040 android:id="@+id/info_left"
Tadashi G. Takaoka2442e772011-06-24 14:19:59 +090041 layout="@layout/candidate_info" />
42 </RelativeLayout>
Tadashi G. Takaoka717a8f52011-06-27 16:57:18 +090043 <include
44 layout="@layout/candidate_divider" />
45 <RelativeLayout
46 android:layout_weight="1.0"
47 android:layout_width="0dp"
48 android:layout_height="match_parent"
49 android:gravity="center"
50 >
51 <include
52 android:id="@+id/word_center"
53 layout="@layout/candidate_word" />
54 <include
55 android:id="@+id/info_center"
56 layout="@layout/candidate_info" />
57 </RelativeLayout>
58 <include
59 layout="@layout/candidate_divider" />
60 <LinearLayout
61 android:orientation="horizontal"
62 android:layout_weight="1.0"
63 android:layout_width="0dp"
64 android:layout_height="match_parent"
65 android:gravity="center_vertical"
66 >
67 <RelativeLayout
68 android:layout_weight="1.0"
69 android:layout_width="0dp"
70 android:layout_height="match_parent"
71 android:gravity="center"
72 >
73 <include
74 android:id="@+id/word_right"
75 layout="@layout/candidate_word" />
76 <include
77 android:id="@+id/info_right"
78 layout="@layout/candidate_info" />
79 </RelativeLayout>
80 <!-- Image drawables are set in CandidateView constructor -->
81 <ImageButton
82 android:id="@+id/expand_candidates_pane"
83 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
85 android:visibility="gone"
86 style="?attr/suggestionsStripBackgroundStyle" />
87 <ImageButton
88 android:id="@+id/close_candidates_pane"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:visibility="gone"
92 style="?attr/suggestionsStripBackgroundStyle" />
93 </LinearLayout>
94 </LinearLayout>
95 <LinearLayout
96 android:id="@+id/touch_to_save"
97 android:orientation="horizontal"
98 android:layout_width="match_parent"
99 android:layout_height="match_parent"
100 android:visibility="gone"
101 >
102 <Button
103 android:id="@+id/word_to_save"
104 android:layout_weight="1.0"
105 android:layout_width="0dp"
106 android:layout_height="match_parent"
107 android:textSize="@dimen/candidate_text_size"
108 android:singleLine="true"
109 android:ellipsize="middle"
110 style="?attr/suggestionBackgroundStyle" />
111 <include
112 layout="@layout/candidate_divider" />
113 <TextView
114 android:layout_weight="2.0"
115 android:layout_width="0dp"
116 android:layout_height="match_parent"
117 android:gravity="left|center_vertical"
118 android:text="@string/hint_add_to_dictionary"
119 android:textSize="@dimen/candidate_text_size"
120 android:background="@null" />
Tadashi G. Takaoka86e815a2011-06-14 16:28:57 +0900121 </LinearLayout>
122</merge>