2013-08-28 00:14:00 +00: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.
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
|
2014-05-14 10:32:00 +00:00
|
|
|
<com.android.inputmethod.keyboard.emoji.EmojiPalettesView
|
2013-08-28 00:14:00 +00:00
|
|
|
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"
|
2013-10-07 02:28:57 +00:00
|
|
|
style="?attr/emojiPalettesViewStyle"
|
2013-08-28 00:14:00 +00:00
|
|
|
>
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
2013-12-13 08:09:16 +00:00
|
|
|
android:layout_height="@dimen/config_suggestions_strip_height"
|
2013-08-28 00:14:00 +00:00
|
|
|
>
|
|
|
|
<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 09:35:28 +00:00
|
|
|
android:layout_height="match_parent"
|
2013-08-28 00:14:00 +00:00
|
|
|
android:divider="@null"
|
|
|
|
android:tabStripEnabled="true"
|
2014-05-16 01:32:04 +00:00
|
|
|
style="?attr/emojiTabWidgetStyle" />
|
2013-08-28 00:14:00 +00:00
|
|
|
<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 09:35:28 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="2dip"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@drawable/suggestions_strip_divider" />
|
2014-05-29 14:24:08 +00:00
|
|
|
<!-- TODO: Implement KeyView and replace this. -->
|
2013-08-28 00:14:00 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/emoji_keyboard_delete"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_weight="12.5"
|
|
|
|
android:layout_height="match_parent"
|
2014-04-17 03:06:55 +00:00
|
|
|
android:contentDescription="@string/spoken_description_delete" />
|
2013-08-28 00:14:00 +00:00
|
|
|
</LinearLayout>
|
2014-04-07 03:41:51 +00:00
|
|
|
<android.support.v4.view.ViewPager
|
2013-08-28 00:14:00 +00:00
|
|
|
android:id="@+id/emoji_keyboard_pager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2014-05-14 10:32:00 +00:00
|
|
|
<com.android.inputmethod.keyboard.emoji.EmojiCategoryPageIndicatorView
|
2013-09-18 08:02:37 +00:00
|
|
|
android:id="@+id/emoji_category_page_id_view"
|
|
|
|
android:layout_width="match_parent"
|
2014-05-16 01:32:04 +00:00
|
|
|
android:layout_height="2dip"
|
|
|
|
style="?attr/emojiCategoryPageIndicatorViewStyle" />
|
2013-08-28 00:14:00 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/emoji_action_bar"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
2013-09-10 08:55:44 +00:00
|
|
|
android:layout_height="0dip"
|
|
|
|
android:layout_weight="1"
|
2013-08-28 00:14:00 +00:00
|
|
|
>
|
2014-05-29 14:24:08 +00:00
|
|
|
<!-- TODO: Implement a KeyView and replace this. -->
|
2014-02-06 09:14:26 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/emoji_keyboard_alphabet_left"
|
2013-08-28 00:14:00 +00:00
|
|
|
android:layout_width="0dip"
|
2013-09-10 08:55:44 +00:00
|
|
|
android:layout_weight="0.15"
|
2014-02-06 09:14:26 +00:00
|
|
|
android:gravity="center"
|
|
|
|
android:layout_height="match_parent" />
|
2014-05-29 14:24:08 +00:00
|
|
|
<!-- TODO: Implement KeyView and replace this. -->
|
|
|
|
<RelativeLayout
|
2013-09-10 08:55:44 +00:00
|
|
|
android:id="@+id/emoji_keyboard_space"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_weight="0.70"
|
2014-04-17 03:06:55 +00:00
|
|
|
android:layout_height="match_parent"
|
2014-05-29 14:24:08 +00:00
|
|
|
android:contentDescription="@string/spoken_description_space">
|
|
|
|
<!-- WORKAROUND: Show the spacebar icon as a bacground of this View. -->
|
|
|
|
<View
|
|
|
|
android:id="@+id/emoji_keyboard_space_icon"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_marginRight="12dp"
|
|
|
|
android:layout_centerInParent="true" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<!-- TODO: Implement KeyView and replace this. -->
|
2014-02-06 09:14:26 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/emoji_keyboard_alphabet_right"
|
2013-08-28 00:14:00 +00:00
|
|
|
android:layout_width="0dip"
|
2013-09-10 08:55:44 +00:00
|
|
|
android:layout_weight="0.15"
|
2014-02-06 09:14:26 +00:00
|
|
|
android:gravity="center"
|
|
|
|
android:layout_height="match_parent" />
|
2013-08-28 00:14:00 +00:00
|
|
|
</LinearLayout>
|
2014-05-14 10:32:00 +00:00
|
|
|
</com.android.inputmethod.keyboard.emoji.EmojiPalettesView>
|