blob: 93b03042290e1a75af00ce504e9b8aaa468715f4 [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"
Tadashi G. Takaokac150acc2011-05-23 18:30:21 +090023 android:id="@+id/candidates_container"
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090024 android:orientation="horizontal"
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090025 android:gravity="bottom"
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090026 android:layout_width="match_parent"
Tadashi G. Takaokaa8c163f2011-04-08 17:58:35 +090027 android:layout_height="wrap_content"
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090028 android:minHeight="@dimen/candidate_strip_minimum_height"
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090029>
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090030 <!-- On tablets, the candidate strip is centered with horizontal paddings on both sides because
31 width of the landscape mode is too long for the candidate strip. This LinearLayout is
32 required to hold the paddings. -->
33 <LinearLayout
34 android:orientation="horizontal"
35 android:layout_width="match_parent"
Tadashi G. Takaokad4f14d02011-04-14 17:48:25 +090036 android:layout_height="wrap_content"
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090037 android:paddingRight="@dimen/candidate_strip_padding"
38 android:paddingLeft="@dimen/candidate_strip_padding"
Tadashi G. Takaoka13a74192011-05-24 21:08:20 +090039 style="?attr/suggestionsStripBackgroundStyle"
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090040 >
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090041 <HorizontalScrollView
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090042 android:layout_width="match_parent"
Tadashi G. Takaokad4f14d02011-04-14 17:48:25 +090043 android:layout_height="wrap_content"
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090044 android:fadingEdge="horizontal"
45 android:fadingEdgeLength="@dimen/candidate_strip_fading_edge_length"
46 android:scrollbars="none"
47 >
48 <com.android.inputmethod.latin.CandidateView
49 android:id="@+id/candidates"
50 android:layout_width="match_parent"
Tadashi G. Takaokad4f14d02011-04-14 17:48:25 +090051 android:layout_height="@dimen/candidate_strip_height"
52 android:gravity="center_vertical" />
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090053 </HorizontalScrollView>
54 </LinearLayout>
Tadashi G. Takaokae9311bc2010-12-15 16:53:37 +090055</LinearLayout>