abouttreesummaryrefslogcommitdiff
path: root/res/layout/emoji_pane.xml
diff options
context:
space:
mode:
authorJules Aguillon2022-12-11 16:20:51 +0100
committerJules Aguillon2022-12-11 16:26:50 +0100
commit199ca5cf03f1778d9a41622f4b0ed02912c2a20b (patch)
tree67b12d71826ec7d3f027d81ad37835995d25e6c1 /res/layout/emoji_pane.xml
parent87d21685ca2909a1a08ac22bd8eb2672c3139840 (diff)
downloadunexpected-keyboard-199ca5cf03f1778d9a41622f4b0ed02912c2a20b.tar.gz
unexpected-keyboard-199ca5cf03f1778d9a41622f4b0ed02912c2a20b.zip
Improve emoji pane layout
The measurement function was wrong in some situations. Set a width for columns and properly configure the GridView.
Diffstat (limited to 'res/layout/emoji_pane.xml')
-rw-r--r--res/layout/emoji_pane.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/layout/emoji_pane.xml b/res/layout/emoji_pane.xml
index 2931282..bdce8e0 100644
--- a/res/layout/emoji_pane.xml
+++ b/res/layout/emoji_pane.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:hardwareAccelerated="false">
<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:background="?attr/colorKeyboard" android:layout_width="fill_parent" android:layout_height="@dimen/emoji_grid_height"/>
+ <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"/>