abouttreesummaryrefslogcommitdiff
path: root/res/values/styles.xml
diff options
context:
space:
mode:
authorJules Aguillon2026-05-01 20:25:20 +0200
committerGitHub2026-05-01 20:25:20 +0200
commitd164820bca8d2182869108f8a015ce3d987d048d (patch)
tree7890ce5114766ba91e8092c2bf388d0b7820e11a /res/values/styles.xml
parentb844af1f289921592a8bfb7e5a174d4e1b33c0dd (diff)
downloadunexpected-keyboard-d164820bca8d2182869108f8a015ce3d987d048d.tar.gz
unexpected-keyboard-d164820bca8d2182869108f8a015ce3d987d048d.zip
Reduce the size of suggestions to fit (#1248)
The font size of the suggested words is reduced if the word would otherwise split on two lines.
Diffstat (limited to 'res/values/styles.xml')
-rw-r--r--res/values/styles.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 6977e00..ce8894a 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -1,9 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Candidates view -->
+ <style name="candidates_view">
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">48dp</item>
+ <item name="android:orientation">horizontal</item>
+ <item name="android:gravity">center</item>
+ </style>
<style name="candidates_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:gravity">center</item>
<item name="android:textColor">?attr/colorLabel</item>
+ <item name="android:maxLines">1</item>
+ <item name="android:paddingHorizontal">@dimen/candidates_padding</item>
</style>
<style name="candidates_status">
<item name="android:layout_width">match_parent</item>