• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.emoji.EmojiPalettesView
22    xmlns:android="http://schemas.android.com/apk/res/android"
23    android:layout_width="match_parent"
24    android:layout_height="wrap_content"
25    android:layout_gravity="bottom"
26    android:orientation="vertical"
27    style="?attr/emojiPalettesViewStyle"
28>
29    <LinearLayout
30        android:orientation="horizontal"
31        android:layout_width="match_parent"
32        android:layout_height="@dimen/config_suggestions_strip_height"
33        style="?attr/suggestionStripViewStyle"
34    >
35        <TabHost
36            android:id="@+id/emoji_category_tabhost"
37            android:layout_width="0dip"
38            android:layout_weight="87.5"
39            android:layout_height="match_parent"
40        >
41            <TabWidget
42                android:id="@android:id/tabs"
43                android:layout_width="match_parent"
44                android:layout_height="match_parent"
45                android:divider="@null" />
46            <FrameLayout
47                android:id="@android:id/tabcontent"
48                android:layout_width="0dip"
49                android:layout_height="0dip"
50            >
51                <!-- Empty placeholder that TabHost requires. But we don't use it to actually
52                     display anything. We monitor the tab changes and change the ViewPager.
53                     Similarly the ViewPager swipes are intercepted and passed to the TabHost. -->
54                <View
55                    android:id="@+id/emoji_keyboard_dummy"
56                    android:layout_width="0dip"
57                    android:layout_height="0dip"
58                    android:visibility="gone" />
59            </FrameLayout>
60        </TabHost>
61        <include layout="@layout/suggestion_divider" />
62        <!-- TODO: Implement KeyView and replace this. -->
63        <!-- Provide audio and haptic feedback by ourselves based on the keyboard settings.
64             We just need to ignore the system's audio and haptic feedback settings. -->
65        <ImageButton
66            android:id="@+id/emoji_keyboard_delete"
67            android:layout_width="0dip"
68            android:layout_weight="12.5"
69            android:layout_height="match_parent"
70            android:hapticFeedbackEnabled="false"
71            android:soundEffectsEnabled="false"
72            android:contentDescription="@string/spoken_description_delete" />
73    </LinearLayout>
74    <androidx.viewpager.widget.ViewPager
75        android:id="@+id/emoji_keyboard_pager"
76        android:layout_width="match_parent"
77        android:layout_height="wrap_content" />
78    <com.android.inputmethod.keyboard.emoji.EmojiCategoryPageIndicatorView
79        android:id="@+id/emoji_category_page_id_view"
80        android:layout_width="match_parent"
81        android:layout_height="2dip" />
82    <LinearLayout
83        android:id="@+id/emoji_action_bar"
84        android:orientation="horizontal"
85        android:layout_width="match_parent"
86        android:layout_height="0dip"
87        android:layout_weight="1"
88    >
89        <!-- TODO: Implement a KeyView and replace this. -->
90        <!-- Provide audio and haptic feedback by ourselves based on the keyboard settings.
91             We just need to ignore the system's audio and haptic feedback settings. -->
92        <TextView
93            android:id="@+id/emoji_keyboard_alphabet_left"
94            android:layout_width="0dip"
95            android:layout_weight="0.15"
96            android:gravity="center"
97            android:layout_height="match_parent"
98            android:hapticFeedbackEnabled="false"
99            android:soundEffectsEnabled="false" />
100        <!-- TODO: Implement KeyView and replace this. -->
101        <!-- Provide audio and haptic feedback by ourselves based on the keyboard settings.
102             We just need to ignore the system's audio and haptic feedback settings. -->
103        <RelativeLayout
104            android:id="@+id/emoji_keyboard_space"
105            android:layout_width="0dip"
106            android:layout_weight="0.70"
107            android:layout_height="match_parent"
108            android:hapticFeedbackEnabled="false"
109            android:soundEffectsEnabled="false"
110            android:contentDescription="@string/spoken_description_space">
111            <!-- WORKAROUND: Show the spacebar icon as a bacground of this View. -->
112            <View
113                android:id="@+id/emoji_keyboard_space_icon"
114                android:layout_width="match_parent"
115                android:layout_height="wrap_content"
116                android:layout_marginLeft="12dp"
117                android:layout_marginRight="12dp"
118                android:layout_centerInParent="true" />
119        </RelativeLayout>
120        <!-- TODO: Implement KeyView and replace this. -->
121        <!-- Provide audio and haptic feedback by ourselves based on the keyboard settings.
122             We just need to ignore the system's audio and haptic feedback settings. -->
123        <TextView
124            android:id="@+id/emoji_keyboard_alphabet_right"
125            android:layout_width="0dip"
126            android:layout_weight="0.15"
127            android:gravity="center"
128            android:layout_height="match_parent"
129            android:hapticFeedbackEnabled="false"
130            android:soundEffectsEnabled="false" />
131    </LinearLayout>
132</com.android.inputmethod.keyboard.emoji.EmojiPalettesView>
133