2013-08-28 01:14:00 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
/*
|
|
|
|
**
|
|
|
|
** Copyright 2013, The Android Open Source Project
|
|
|
|
**
|
|
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
** you may not use this file except in compliance with the License.
|
|
|
|
** You may obtain a copy of the License at
|
|
|
|
**
|
|
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
**
|
|
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
** See the License for the specific language governing permissions and
|
|
|
|
** limitations under the License.
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
|
|
|
|
<com.android.inputmethod.keyboard.EmojiKeyboardView
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/emoji_keyboard_view"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="?attr/emojiKeyboardViewStyle"
|
|
|
|
>
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/suggestions_strip_height"
|
|
|
|
>
|
|
|
|
<TabHost
|
|
|
|
android:id="@+id/emoji_category_tabhost"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_weight="87.5"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
>
|
|
|
|
<TabWidget
|
|
|
|
android:id="@android:id/tabs"
|
|
|
|
android:layout_width="match_parent"
|
2013-09-20 10:35:28 +01:00
|
|
|
android:layout_height="match_parent"
|
2013-08-28 01:14:00 +01:00
|
|
|
android:background="@drawable/tab_selected"
|
|
|
|
android:divider="@null"
|
|
|
|
android:tabStripEnabled="true"
|
|
|
|
android:tabStripLeft="@drawable/tab_unselected"
|
|
|
|
android:tabStripRight="@drawable/tab_unselected" />
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@android:id/tabcontent"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_height="0dip"
|
|
|
|
>
|
|
|
|
<!-- Empty placeholder that TabHost requires. But we don't use it to actually
|
|
|
|
display anything. We monitor the tab changes and change the ViewPager.
|
|
|
|
Similarly the ViewPager swipes are intercepted and passed to the TabHost. -->
|
|
|
|
<View
|
|
|
|
android:id="@+id/emoji_keyboard_dummy"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_height="0dip"
|
|
|
|
android:visibility="gone" />
|
|
|
|
</FrameLayout>
|
|
|
|
</TabHost>
|
2013-09-20 10:35:28 +01:00
|
|
|
<View
|
|
|
|
android:layout_width="2dip"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@drawable/suggestions_strip_divider" />
|
2013-08-28 01:14:00 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/emoji_keyboard_delete"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_weight="12.5"
|
|
|
|
android:layout_height="match_parent"
|
2013-09-20 10:35:28 +01:00
|
|
|
android:background="@color/emoji_key_background_color"
|
2013-09-19 14:26:36 +01:00
|
|
|
android:src="@drawable/sym_keyboard_delete_holo_dark" />
|
2013-08-28 01:14:00 +01:00
|
|
|
</LinearLayout>
|
|
|
|
<android.support.v4.view.ViewPager
|
|
|
|
android:id="@+id/emoji_keyboard_pager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2013-09-18 09:02:37 +01:00
|
|
|
<com.android.inputmethod.keyboard.EmojiCategoryPageIndicatorView
|
|
|
|
android:id="@+id/emoji_category_page_id_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/emoji_category_page_id_view_background" />
|
2013-08-28 01:14:00 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/emoji_action_bar"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
2013-09-10 09:55:44 +01:00
|
|
|
android:layout_height="0dip"
|
|
|
|
android:layout_weight="1"
|
2013-08-28 01:14:00 +01:00
|
|
|
>
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/emoji_keyboard_alphabet"
|
|
|
|
android:layout_width="0dip"
|
2013-09-10 09:55:44 +01:00
|
|
|
android:layout_weight="0.15"
|
2013-08-28 01:14:00 +01:00
|
|
|
android:layout_height="match_parent"
|
2013-09-19 14:26:36 +01:00
|
|
|
android:src="@drawable/ic_ime_switcher_dark" />
|
2013-09-10 09:55:44 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/emoji_keyboard_space"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_weight="0.70"
|
|
|
|
android:layout_height="match_parent" />
|
2013-08-28 01:14:00 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/emoji_keyboard_send"
|
|
|
|
android:layout_width="0dip"
|
2013-09-10 09:55:44 +01:00
|
|
|
android:layout_weight="0.15"
|
2013-08-28 01:14:00 +01:00
|
|
|
android:layout_height="match_parent"
|
2013-09-19 14:26:36 +01:00
|
|
|
android:src="@drawable/sym_keyboard_return_holo_dark" />
|
2013-08-28 01:14:00 +01:00
|
|
|
</LinearLayout>
|
|
|
|
</com.android.inputmethod.keyboard.EmojiKeyboardView>
|