Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 **
      5 ** Copyright 2011, 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 <com.android.inputmethod.latin.InputView
     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 >
     28     <View
     29         android:id="@+id/key_preview_backing"
     30         android:layout_width="match_parent"
     31         android:layout_height="@dimen/key_preview_backing_height" />
     32 
     33     <!-- On tablets, the suggestions strip is centered with horizontal paddings on both sides
     34          because width of the landscape mode is too long for the suggestions strip. This
     35          LinearLayout is required to hold the paddings. -->
     36     <LinearLayout
     37         android:id="@+id/suggestions_container"
     38         android:orientation="horizontal"
     39         android:layout_width="match_parent"
     40         android:layout_height="wrap_content"
     41     >
     42         <View
     43             android:layout_width="@dimen/suggestions_strip_padding"
     44             android:layout_height="@dimen/suggestions_strip_height"
     45             style="?attr/suggestionsStripBackgroundStyle" />
     46         <com.android.inputmethod.latin.SuggestionsView
     47             android:id="@+id/suggestions_view"
     48             android:layout_weight="1.0"
     49             android:layout_width="0dp"
     50             android:layout_height="@dimen/suggestions_strip_height"
     51             android:gravity="center_vertical"
     52             style="?attr/suggestionsViewStyle" />
     53         <View
     54             android:layout_width="@dimen/suggestions_strip_padding"
     55             android:layout_height="@dimen/suggestions_strip_height"
     56             style="?attr/suggestionsStripBackgroundStyle" />
     57     </LinearLayout>
     58 
     59     <com.android.inputmethod.keyboard.LatinKeyboardView
     60         android:id="@+id/keyboard_view"
     61         android:layout_alignParentBottom="true"
     62         android:layout_width="match_parent"
     63         android:layout_height="wrap_content" />
     64 </com.android.inputmethod.latin.InputView>
     65