Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 **
      5 ** Copyright 2013, 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.keyboard.EmojiPalettesView
     22     xmlns:android="http://schemas.android.com/apk/res/android"
     23     android:id="@+id/emoji_keyboard_view"
     24     android:orientation="vertical"
     25     android:layout_width="match_parent"
     26     android:layout_height="wrap_content"
     27     style="?attr/emojiPalettesViewStyle"
     28 >
     29     <LinearLayout
     30         android:orientation="horizontal"
     31         android:layout_width="match_parent"
     32         android:layout_height="@dimen/suggestions_strip_height"
     33     >
     34         <TabHost
     35             android:id="@+id/emoji_category_tabhost"
     36             android:layout_width="0dip"
     37             android:layout_weight="87.5"
     38             android:layout_height="match_parent"
     39         >
     40             <TabWidget
     41                 android:id="@android:id/tabs"
     42                 android:layout_width="match_parent"
     43                 android:layout_height="match_parent"
     44                 android:background="@drawable/tab_selected"
     45                 android:divider="@null"
     46                 android:tabStripEnabled="true"
     47                 android:tabStripLeft="@drawable/tab_unselected"
     48                 android:tabStripRight="@drawable/tab_unselected" />
     49             <FrameLayout
     50                 android:id="@android:id/tabcontent"
     51                 android:layout_width="0dip"
     52                 android:layout_height="0dip"
     53             >
     54                 <!-- Empty placeholder that TabHost requires. But we don't use it to actually
     55                      display anything. We monitor the tab changes and change the ViewPager.
     56                      Similarly the ViewPager swipes are intercepted and passed to the TabHost. -->
     57                 <View
     58                     android:id="@+id/emoji_keyboard_dummy"
     59                     android:layout_width="0dip"
     60                     android:layout_height="0dip"
     61                     android:visibility="gone" />
     62             </FrameLayout>
     63         </TabHost>
     64         <View
     65             android:layout_width="2dip"
     66             android:layout_height="match_parent"
     67             android:background="@drawable/suggestions_strip_divider" />
     68         <ImageButton
     69             android:id="@+id/emoji_keyboard_delete"
     70             android:layout_width="0dip"
     71             android:layout_weight="12.5"
     72             android:layout_height="match_parent"
     73             android:background="@color/emoji_key_background_color"
     74             android:src="@drawable/sym_keyboard_delete_holo_dark" />
     75     </LinearLayout>
     76     <android.support.v4.view.ViewPager
     77         android:id="@+id/emoji_keyboard_pager"
     78         android:layout_width="match_parent"
     79         android:layout_height="wrap_content" />
     80     <com.android.inputmethod.keyboard.EmojiCategoryPageIndicatorView
     81         android:id="@+id/emoji_category_page_id_view"
     82         android:layout_width="match_parent"
     83         android:layout_height="wrap_content"
     84         android:background="@color/emoji_category_page_id_view_background" />
     85     <LinearLayout
     86         android:id="@+id/emoji_action_bar"
     87         android:orientation="horizontal"
     88         android:layout_width="match_parent"
     89         android:layout_height="0dip"
     90         android:layout_weight="1"
     91     >
     92         <ImageButton
     93             android:id="@+id/emoji_keyboard_alphabet"
     94             android:layout_width="0dip"
     95             android:layout_weight="0.15"
     96             android:layout_height="match_parent"
     97             android:src="@drawable/ic_ime_switcher_dark" />
     98         <ImageButton
     99             android:id="@+id/emoji_keyboard_space"
    100             android:layout_width="0dip"
    101             android:layout_weight="0.70"
    102             android:layout_height="match_parent" />
    103         <ImageButton
    104             android:id="@+id/emoji_keyboard_alphabet2"
    105             android:layout_width="0dip"
    106             android:layout_weight="0.15"
    107             android:layout_height="match_parent"
    108             android:src="@drawable/ic_ime_switcher_dark" />
    109     </LinearLayout>
    110 </com.android.inputmethod.keyboard.EmojiPalettesView>
    111