diff options
author | 2011-09-01 14:54:28 +0900 | |
---|---|---|
committer | 2011-09-01 15:41:34 +0900 | |
commit | 913e2aeef26f172d500a4ebfc644b5f47778841a (patch) | |
tree | c70db4369aa761942fa9656d9e1aee15c557f3bf /java/res/layout | |
parent | b17300e2f03d2712bc3aae4a6bf548eb836a27ae (diff) | |
download | latinime-913e2aeef26f172d500a4ebfc644b5f47778841a.tar.gz latinime-913e2aeef26f172d500a4ebfc644b5f47778841a.tar.xz latinime-913e2aeef26f172d500a4ebfc644b5f47778841a.zip |
Rename CandidateView to SuggestionsView
Change-Id: I6480cdf025f065130e1969899b259a243e7a11be
Diffstat (limited to 'java/res/layout')
-rw-r--r-- | java/res/layout/input_view.xml | 47 | ||||
-rw-r--r-- | java/res/layout/more_suggestions.xml | 2 | ||||
-rw-r--r-- | java/res/layout/suggestion_divider.xml (renamed from java/res/layout/candidate_divider.xml) | 2 | ||||
-rw-r--r-- | java/res/layout/suggestion_info.xml (renamed from java/res/layout/candidate_info.xml) | 0 | ||||
-rw-r--r-- | java/res/layout/suggestion_preview.xml (renamed from java/res/layout/candidate_preview.xml) | 20 | ||||
-rw-r--r-- | java/res/layout/suggestion_word.xml (renamed from java/res/layout/candidate_word.xml) | 10 | ||||
-rw-r--r-- | java/res/layout/suggestions_strip.xml (renamed from java/res/layout/candidates_strip.xml) | 4 |
7 files changed, 32 insertions, 53 deletions
diff --git a/java/res/layout/input_view.xml b/java/res/layout/input_view.xml index 821082f91..328469517 100644 --- a/java/res/layout/input_view.xml +++ b/java/res/layout/input_view.xml @@ -25,55 +25,34 @@ android:layout_width="match_parent" android:layout_height="wrap_content" > - <!-- On tablets, the candidate strip is centered with horizontal paddings on both sides because - width of the landscape mode is too long for the candidate strip. This LinearLayout is - required to hold the paddings. --> + <!-- On tablets, the suggestions strip is centered with horizontal paddings on both sides + because width of the landscape mode is too long for the suggestions strip. This + LinearLayout is required to hold the paddings. --> <LinearLayout - android:id="@+id/candidates_container" + android:id="@+id/suggestions_container" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" - android:minHeight="@dimen/candidate_strip_minimum_height" + android:minHeight="@dimen/suggestions_strip_minimum_height" android:gravity="bottom" > <View - android:layout_width="@dimen/candidate_strip_padding" - android:layout_height="@dimen/candidate_strip_height" + android:layout_width="@dimen/suggestions_strip_padding" + android:layout_height="@dimen/suggestions_strip_height" style="?attr/suggestionsStripBackgroundStyle" /> - <com.android.inputmethod.latin.CandidateView - android:id="@+id/candidates" + <com.android.inputmethod.latin.SuggestionsView + android:id="@+id/suggestions_view" android:layout_weight="1.0" android:layout_width="0dp" - android:layout_height="@dimen/candidate_strip_height" + android:layout_height="@dimen/suggestions_strip_height" android:gravity="center_vertical" - style="?attr/candidateViewStyle" /> + style="?attr/suggestionsViewStyle" /> <View - android:layout_width="@dimen/candidate_strip_padding" - android:layout_height="@dimen/candidate_strip_height" + android:layout_width="@dimen/suggestions_strip_padding" + android:layout_height="@dimen/suggestions_strip_height" style="?attr/suggestionsStripBackgroundStyle" /> </LinearLayout> - <LinearLayout - android:id="@+id/candidates_pane_container" - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:visibility="gone" - style="?attr/suggestionsStripBackgroundStyle" - > - <View - android:layout_width="@dimen/candidate_strip_padding" - android:layout_height="@dimen/candidate_strip_height" /> - <FrameLayout - android:id="@+id/candidates_pane" - android:layout_weight="1.0" - android:layout_width="0dp" - android:layout_height="match_parent" /> - <View - android:layout_width="@dimen/candidate_strip_padding" - android:layout_height="@dimen/candidate_strip_height" /> - </LinearLayout> - <com.android.inputmethod.keyboard.LatinKeyboardView android:id="@+id/keyboard_view" android:layout_alignParentBottom="true" diff --git a/java/res/layout/more_suggestions.xml b/java/res/layout/more_suggestions.xml index d387a1573..6aa82e197 100644 --- a/java/res/layout/more_suggestions.xml +++ b/java/res/layout/more_suggestions.xml @@ -30,7 +30,7 @@ android:layout_alignParentBottom="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - latin:keyLabelSize="@dimen/candidate_text_size" + latin:keyLabelSize="@dimen/suggestion_text_size" latin:keyHintLetterRatio="@fraction/more_suggestions_info_ratio" latin:keyHintLetterColor="@android:color/white" /> diff --git a/java/res/layout/candidate_divider.xml b/java/res/layout/suggestion_divider.xml index dc5e77966..e38a725b1 100644 --- a/java/res/layout/candidate_divider.xml +++ b/java/res/layout/suggestion_divider.xml @@ -2,7 +2,7 @@ <!-- /* ** -** Copyright 2010, The Android Open Source Project +** 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. diff --git a/java/res/layout/candidate_info.xml b/java/res/layout/suggestion_info.xml index a364d46aa..a364d46aa 100644 --- a/java/res/layout/candidate_info.xml +++ b/java/res/layout/suggestion_info.xml diff --git a/java/res/layout/candidate_preview.xml b/java/res/layout/suggestion_preview.xml index 32705c996..3c026ae0e 100644 --- a/java/res/layout/candidate_preview.xml +++ b/java/res/layout/suggestion_preview.xml @@ -1,19 +1,19 @@ <?xml version="1.0" encoding="utf-8"?> <!-- -/* +/* ** -** Copyright 2008, The Android Open Source Project +** 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 +** 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 +** 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 +** 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. */ --> diff --git a/java/res/layout/candidate_word.xml b/java/res/layout/suggestion_word.xml index b711e8f29..d64cacf04 100644 --- a/java/res/layout/candidate_word.xml +++ b/java/res/layout/suggestion_word.xml @@ -2,7 +2,7 @@ <!-- /* ** -** Copyright 2010, The Android Open Source Project +** 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. @@ -22,12 +22,12 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:minWidth="@dimen/candidate_min_width" - android:textSize="@dimen/candidate_text_size" + android:minWidth="@dimen/suggestion_min_width" + android:textSize="@dimen/suggestion_text_size" android:gravity="center" - android:paddingLeft="@dimen/candidate_padding" + android:paddingLeft="@dimen/suggestion_padding" android:paddingTop="0dp" - android:paddingRight="@dimen/candidate_padding" + android:paddingRight="@dimen/suggestion_padding" android:paddingBottom="0dp" android:focusable="false" android:clickable="false" diff --git a/java/res/layout/candidates_strip.xml b/java/res/layout/suggestions_strip.xml index fdb13f73e..9252017b4 100644 --- a/java/res/layout/candidates_strip.xml +++ b/java/res/layout/suggestions_strip.xml @@ -24,12 +24,12 @@ > <!-- Placer for debug information --> <RelativeLayout - android:id="@+id/candidates_placer" + android:id="@+id/suggestions_placer" android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout - android:id="@+id/candidates_strip" + android:id="@+id/suggestions_strip" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" /> |