satok | a0f8739 | 2010-05-14 22:20:13 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | ** |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 5 | ** Copyright 2011, The Android Open Source Project |
satok | a0f8739 | 2010-05-14 22:20:13 +0900 | [diff] [blame] | 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 | |
Tadashi G. Takaoka | c150acc | 2011-05-23 18:30:21 +0900 | [diff] [blame] | 21 | <LinearLayout |
| 22 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 23 | xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" |
| 24 | android:orientation="vertical" |
| 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="wrap_content" |
| 27 | > |
Tadashi G. Takaoka | 070760d | 2011-06-13 14:46:37 +0900 | [diff] [blame] | 28 | <!-- On tablets, the candidate strip is centered with horizontal paddings on both sides because |
| 29 | width of the landscape mode is too long for the candidate strip. This LinearLayout is |
| 30 | required to hold the paddings. --> |
| 31 | <LinearLayout |
| 32 | android:id="@+id/candidates_container" |
| 33 | android:orientation="horizontal" |
satok | a0f8739 | 2010-05-14 22:20:13 +0900 | [diff] [blame] | 34 | android:layout_width="match_parent" |
Tadashi G. Takaoka | 2b9eb15 | 2011-06-24 07:52:35 +0900 | [diff] [blame] | 35 | android:layout_height="wrap_content" |
| 36 | android:minHeight="@dimen/candidate_strip_minimum_height" |
Tadashi G. Takaoka | 86e815a | 2011-06-14 16:28:57 +0900 | [diff] [blame] | 37 | android:gravity="bottom" |
Tadashi G. Takaoka | 070760d | 2011-06-13 14:46:37 +0900 | [diff] [blame] | 38 | > |
| 39 | <View |
| 40 | android:layout_width="@dimen/candidate_strip_padding" |
| 41 | android:layout_height="@dimen/candidate_strip_height" |
| 42 | style="?attr/suggestionsStripBackgroundStyle" /> |
Tadashi G. Takaoka | 86e815a | 2011-06-14 16:28:57 +0900 | [diff] [blame] | 43 | <com.android.inputmethod.latin.CandidateView |
| 44 | android:id="@+id/candidates" |
| 45 | android:layout_weight="1.0" |
| 46 | android:layout_width="0dp" |
| 47 | android:layout_height="@dimen/candidate_strip_height" |
Tadashi G. Takaoka | f921129 | 2011-06-20 23:23:33 +0900 | [diff] [blame] | 48 | android:gravity="center_vertical" |
| 49 | style="?attr/candidateViewStyle" /> |
Tadashi G. Takaoka | 070760d | 2011-06-13 14:46:37 +0900 | [diff] [blame] | 50 | <View |
| 51 | android:layout_width="@dimen/candidate_strip_padding" |
| 52 | android:layout_height="@dimen/candidate_strip_height" |
| 53 | style="?attr/suggestionsStripBackgroundStyle" /> |
| 54 | </LinearLayout> |
| 55 | |
Tadashi G. Takaoka | 86e815a | 2011-06-14 16:28:57 +0900 | [diff] [blame] | 56 | <LinearLayout |
| 57 | android:id="@+id/candidates_pane_container" |
| 58 | android:orientation="horizontal" |
| 59 | android:layout_width="match_parent" |
| 60 | android:layout_height="wrap_content" |
| 61 | android:visibility="gone" |
| 62 | style="?attr/suggestionsStripBackgroundStyle" |
| 63 | > |
| 64 | <View |
| 65 | android:layout_width="@dimen/candidate_strip_padding" |
| 66 | android:layout_height="@dimen/candidate_strip_height" /> |
| 67 | <FrameLayout |
| 68 | android:id="@+id/candidates_pane" |
| 69 | android:layout_weight="1.0" |
| 70 | android:layout_width="0dp" |
| 71 | android:layout_height="match_parent" /> |
| 72 | <View |
| 73 | android:layout_width="@dimen/candidate_strip_padding" |
| 74 | android:layout_height="@dimen/candidate_strip_height" /> |
| 75 | </LinearLayout> |
| 76 | |
Tadashi G. Takaoka | 070760d | 2011-06-13 14:46:37 +0900 | [diff] [blame] | 77 | <com.android.inputmethod.keyboard.LatinKeyboardView |
| 78 | android:id="@+id/keyboard_view" |
| 79 | android:layout_alignParentBottom="true" |
| 80 | android:layout_width="match_parent" |
| 81 | android:layout_height="wrap_content" /> |
Tadashi G. Takaoka | c150acc | 2011-05-23 18:30:21 +0900 | [diff] [blame] | 82 | </LinearLayout> |