diff options
| author | Jules Aguillon | 2023-10-28 20:14:32 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-10-28 20:14:32 +0200 |
| commit | 148bed769a14f9f5efed84e8d9391e0ace813bd2 (patch) | |
| tree | 80b0e2297e4abbef58ef4cfea705d60e57957f5c /res | |
| parent | 3d36ecb34d0555097d6cc82071acdda4e97b0a90 (diff) | |
| download | unexpected-keyboard-148bed769a14f9f5efed84e8d9391e0ace813bd2.tar.gz unexpected-keyboard-148bed769a14f9f5efed84e8d9391e0ace813bd2.zip | |
Add left/right slider to the emoji pane
This entirely changes the implementation of the bottom row in the emoji
pane.
Diffstat (limited to 'res')
| -rw-r--r-- | res/layout/emoji_pane.xml | 5 | ||||
| -rw-r--r-- | res/values/styles.xml | 9 | ||||
| -rw-r--r-- | res/xml/emoji_bottom_row.xml | 10 |
3 files changed, 11 insertions, 13 deletions
diff --git a/res/layout/emoji_pane.xml b/res/layout/emoji_pane.xml index bdce8e0..6d53f86 100644 --- a/res/layout/emoji_pane.xml +++ b/res/layout/emoji_pane.xml @@ -3,9 +3,6 @@ <juloo.keyboard2.EmojiGroupButtonsBar android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"/> <juloo.keyboard2.EmojiGridView android:id="@+id/emoji_grid" android:layout_width="fill_parent" android:layout_height="@dimen/emoji_grid_height" android:orientation="vertical" android:numColumns="auto_fit" android:columnWidth="45sp" android:background="?attr/colorKeyboard"/> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"> - <juloo.keyboard2.EmojiKeyButton style="@style/emojiKeyButton" key="switch_back_emoji"/> - <juloo.keyboard2.EmojiKeyButton style="@style/emojiKeyButton" android:layout_weight="4" key="space"/> - <juloo.keyboard2.EmojiKeyButton style="@style/emojiKeyButton" key="backspace"/> - <juloo.keyboard2.EmojiKeyButton style="@style/emojiKeyButton" key="enter"/> + <juloo.keyboard2.EmojiBottomRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="?attr/emoji_key_bg"/> </LinearLayout> </LinearLayout> diff --git a/res/values/styles.xml b/res/values/styles.xml index d3283a7..fc753c3 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -8,15 +8,6 @@ <item name="android:textColor">?attr/emoji_key_text</item> <item name="android:textSize">18dp</item> </style> - <style name="emojiKeyButton"> - <item name="android:layout_width">0px</item> - <item name="android:layout_height">wrap_content</item> - <item name="android:layout_weight">1</item> - <item name="android:padding">0px</item> - <item name="android:background">?attr/emoji_key_bg</item> - <item name="android:textColor">?attr/emoji_key_text</item> - <item name="android:textSize">18dp</item> - </style> <style name="emojiGridButton"> <item name="android:layout_width">fill_parent</item> <item name="android:layout_height">fill_parent</item> diff --git a/res/xml/emoji_bottom_row.xml b/res/xml/emoji_bottom_row.xml new file mode 100644 index 0000000..68fb083 --- /dev/null +++ b/res/xml/emoji_bottom_row.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- The bottom row used in the emoji pane. --> +<keyboard bottom_row="false"> + <row height="0.95"> + <key key0="switch_back_emoji"/> + <key width="4" key0="space" key5="cursor_left" key6="cursor_right" slider="true"/> + <key key0="backspace"/> + <key key0="enter"/> + </row> +</keyboard> |
