diff options
author | 2011-06-24 14:19:59 +0900 | |
---|---|---|
committer | 2011-06-24 14:19:59 +0900 | |
commit | 2442e779857e7eda253aadcb1c4dff5ccb3e53f4 (patch) | |
tree | c24d65436d7c920210fa045f3db727a0ccd155d6 /java/res/layout | |
parent | 703e7252bae287d2d43265532d2003334bf16210 (diff) | |
download | latinime-2442e779857e7eda253aadcb1c4dff5ccb3e53f4.tar.gz latinime-2442e779857e7eda253aadcb1c4dff5ccb3e53f4.tar.xz latinime-2442e779857e7eda253aadcb1c4dff5ccb3e53f4.zip |
Display suggested word info in debug mode
Bug: 4686782
Change-Id: I0e5bef33aa39c3d6f75edda7818524965aa40b79
Diffstat (limited to 'java/res/layout')
-rw-r--r-- | java/res/layout/candidate_info.xml | 28 | ||||
-rw-r--r-- | java/res/layout/candidate_word.xml (renamed from java/res/layout/candidate.xml) | 0 | ||||
-rw-r--r-- | java/res/layout/candidates_strip.xml | 48 |
3 files changed, 67 insertions, 9 deletions
diff --git a/java/res/layout/candidate_info.xml b/java/res/layout/candidate_info.xml new file mode 100644 index 000000000..f3557289c --- /dev/null +++ b/java/res/layout/candidate_info.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2011, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<TextView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="6sp" + android:textColor="@android:color/white" + android:visibility="gone" + style="?attr/suggestionBackgroundStyle" /> diff --git a/java/res/layout/candidate.xml b/java/res/layout/candidate_word.xml index 94ae2b44e..94ae2b44e 100644 --- a/java/res/layout/candidate.xml +++ b/java/res/layout/candidate_word.xml diff --git a/java/res/layout/candidates_strip.xml b/java/res/layout/candidates_strip.xml index 88f4c3830..c23c29cbe 100644 --- a/java/res/layout/candidates_strip.xml +++ b/java/res/layout/candidates_strip.xml @@ -22,14 +22,34 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" > - <include - android:id="@+id/candidate_left" - layout="@layout/candidate" /> + <RelativeLayout + android:layout_weight="1.0" + android:layout_width="0dp" + android:layout_height="match_parent" + android:gravity="center" + > + <include + android:id="@+id/word_left" + layout="@layout/candidate_word" /> + <include + android:id="@+id/info_left" + layout="@layout/candidate_info" /> + </RelativeLayout> <include layout="@layout/candidate_divider" /> - <include - android:id="@+id/candidate_center" - layout="@layout/candidate" /> + <RelativeLayout + android:layout_weight="1.0" + android:layout_width="0dp" + android:layout_height="match_parent" + android:gravity="center" + > + <include + android:id="@+id/word_center" + layout="@layout/candidate_word" /> + <include + android:id="@+id/info_center" + layout="@layout/candidate_info" /> + </RelativeLayout> <include layout="@layout/candidate_divider" /> <LinearLayout @@ -39,9 +59,19 @@ android:layout_height="wrap_content" android:gravity="center_vertical" > - <include - android:id="@+id/candidate_right" - layout="@layout/candidate" /> + <RelativeLayout + android:layout_weight="1.0" + android:layout_width="0dp" + android:layout_height="match_parent" + android:gravity="center" + > + <include + android:id="@+id/word_right" + layout="@layout/candidate_word" /> + <include + android:id="@+id/info_right" + layout="@layout/candidate_info" /> + </RelativeLayout> <!-- Image drawables are set in CandidateView constructor --> <ImageButton android:id="@+id/expand_candidates_pane" |