Tadashi G. Takaoka | e9311bc | 2010-12-15 16:53:37 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | ** |
| 5 | ** Copyright 2010, 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 | <LinearLayout |
| 22 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 23 | android:orientation="horizontal" |
Tadashi G. Takaoka | 7a3d3ae | 2011-04-13 14:12:24 +0900 | [diff] [blame] | 24 | android:gravity="bottom" |
Tadashi G. Takaoka | e9311bc | 2010-12-15 16:53:37 +0900 | [diff] [blame] | 25 | android:layout_width="match_parent" |
Tadashi G. Takaoka | a8c163f | 2011-04-08 17:58:35 +0900 | [diff] [blame] | 26 | android:layout_height="wrap_content" |
Tadashi G. Takaoka | 7a3d3ae | 2011-04-13 14:12:24 +0900 | [diff] [blame] | 27 | android:minHeight="@dimen/candidate_strip_minimum_height" |
Tadashi G. Takaoka | e9311bc | 2010-12-15 16:53:37 +0900 | [diff] [blame] | 28 | > |
Tadashi G. Takaoka | 7a3d3ae | 2011-04-13 14:12:24 +0900 | [diff] [blame] | 29 | <!-- On tablets, the candidate strip is centered with horizontal paddings on both sides because |
| 30 | width of the landscape mode is too long for the candidate strip. This LinearLayout is |
| 31 | required to hold the paddings. --> |
| 32 | <LinearLayout |
| 33 | android:orientation="horizontal" |
| 34 | android:layout_width="match_parent" |
Tadashi G. Takaoka | d4f14d0 | 2011-04-14 17:48:25 +0900 | [diff] [blame] | 35 | android:layout_height="wrap_content" |
Tadashi G. Takaoka | 7a3d3ae | 2011-04-13 14:12:24 +0900 | [diff] [blame] | 36 | android:background="@drawable/keyboard_suggest_strip_holo" |
| 37 | android:paddingRight="@dimen/candidate_strip_padding" |
| 38 | android:paddingLeft="@dimen/candidate_strip_padding" |
Tadashi G. Takaoka | e9311bc | 2010-12-15 16:53:37 +0900 | [diff] [blame] | 39 | > |
Tadashi G. Takaoka | 7a3d3ae | 2011-04-13 14:12:24 +0900 | [diff] [blame] | 40 | <HorizontalScrollView |
Tadashi G. Takaoka | e9311bc | 2010-12-15 16:53:37 +0900 | [diff] [blame] | 41 | android:layout_width="match_parent" |
Tadashi G. Takaoka | d4f14d0 | 2011-04-14 17:48:25 +0900 | [diff] [blame] | 42 | android:layout_height="wrap_content" |
Tadashi G. Takaoka | 7a3d3ae | 2011-04-13 14:12:24 +0900 | [diff] [blame] | 43 | android:fadingEdge="horizontal" |
| 44 | android:fadingEdgeLength="@dimen/candidate_strip_fading_edge_length" |
| 45 | android:scrollbars="none" |
| 46 | > |
| 47 | <com.android.inputmethod.latin.CandidateView |
| 48 | android:id="@+id/candidates" |
| 49 | android:layout_width="match_parent" |
Tadashi G. Takaoka | d4f14d0 | 2011-04-14 17:48:25 +0900 | [diff] [blame] | 50 | android:layout_height="@dimen/candidate_strip_height" |
| 51 | android:gravity="center_vertical" /> |
Tadashi G. Takaoka | 7a3d3ae | 2011-04-13 14:12:24 +0900 | [diff] [blame] | 52 | </HorizontalScrollView> |
| 53 | </LinearLayout> |
Tadashi G. Takaoka | e9311bc | 2010-12-15 16:53:37 +0900 | [diff] [blame] | 54 | </LinearLayout> |