blob: 096a0adf1155eb166c6ecfb67f7bf041a367ffb6 [file] [log] [blame]
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +09001<?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. Takaoka7a3d3ae2011-04-13 14:12:24 +090024 android:gravity="bottom"
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090025 android:layout_width="match_parent"
Tadashi G. Takaokaa8c163f2011-04-08 17:58:35 +090026 android:layout_height="wrap_content"
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090027 android:minHeight="@dimen/candidate_strip_minimum_height"
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090028>
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090029 <!-- 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. Takaokad4f14d02011-04-14 17:48:25 +090035 android:layout_height="wrap_content"
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090036 android:background="@drawable/keyboard_suggest_strip_holo"
37 android:paddingRight="@dimen/candidate_strip_padding"
38 android:paddingLeft="@dimen/candidate_strip_padding"
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090039 >
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090040 <HorizontalScrollView
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090041 android:layout_width="match_parent"
Tadashi G. Takaokad4f14d02011-04-14 17:48:25 +090042 android:layout_height="wrap_content"
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090043 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. Takaokad4f14d02011-04-14 17:48:25 +090050 android:layout_height="@dimen/candidate_strip_height"
51 android:gravity="center_vertical" />
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090052 </HorizontalScrollView>
53 </LinearLayout>
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090054</LinearLayout>