abouttreesummaryrefslogcommitdiff
path: root/res
diff options
context:
space:
mode:
authorJules Aguillon2026-05-02 19:32:21 +0200
committerGitHub2026-05-02 19:32:21 +0200
commit9c23e6c5f3459240a87898762cbfa90cef766ad7 (patch)
tree7b632f324e5d14431105ae87ea4e65dbda463d4f /res
parentd164820bca8d2182869108f8a015ce3d987d048d (diff)
downloadunexpected-keyboard-9c23e6c5f3459240a87898762cbfa90cef766ad7.tar.gz
unexpected-keyboard-9c23e6c5f3459240a87898762cbfa90cef766ad7.zip
Emoji suggestion (#1235)
Suggest an emoji in addition to the 3 suggested words when the current word matches an alias in the emoji dictionary, if available.
Diffstat (limited to 'res')
-rw-r--r--res/layout/keyboard.xml7
-rw-r--r--res/values/styles.xml11
2 files changed, 15 insertions, 3 deletions
diff --git a/res/layout/keyboard.xml b/res/layout/keyboard.xml
index 3fb611f..712c48a 100644
--- a/res/layout/keyboard.xml
+++ b/res/layout/keyboard.xml
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:hardwareAccelerated="false" android:orientation="vertical" android:background="?attr/colorKeyboard">
<juloo.keyboard2.suggestions.CandidatesView android:id="@+id/candidates_view" style="@style/candidates_view">
- <TextView android:id="@+id/candidates_left" style="@style/candidates_item" android:layout_width="match_parent"/>
- <TextView android:id="@+id/candidates_middle" style="@style/candidates_item" android:layout_width="match_parent"/>
- <TextView android:id="@+id/candidates_right" style="@style/candidates_item" android:layout_width="match_parent"/>
+ <TextView android:id="@+id/candidates_emoji" style="@style/candidates_emoji"/>
+ <TextView android:id="@+id/candidates_left" style="@style/candidates_item"/>
+ <TextView android:id="@+id/candidates_middle" style="@style/candidates_item"/>
+ <TextView android:id="@+id/candidates_right" style="@style/candidates_item"/>
</juloo.keyboard2.suggestions.CandidatesView>
<juloo.keyboard2.Keyboard2View android:id="@+id/keyboard_view" android:layout_width="match_parent" android:layout_height="wrap_content"/>
</LinearLayout>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index ce8894a..9963c9e 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -13,8 +13,19 @@
<item name="android:layout_weight">1</item>
<item name="android:gravity">center</item>
<item name="android:textColor">?attr/colorLabel</item>
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">match_parent</item>
+ <item name="android:layout_weight">1</item>
+ <item name="android:textColor">?attr/colorLabel</item>
<item name="android:maxLines">1</item>
+ </style>
+ <style name="candidates_emoji">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">match_parent</item>
+ <item name="android:layout_marginLeft">12dp</item>
+ <item name="android:layout_weight">0</item>
<item name="android:paddingHorizontal">@dimen/candidates_padding</item>
+ <item name="android:gravity">center</item>
</style>
<style name="candidates_status">
<item name="android:layout_width">match_parent</item>