abouttreesummaryrefslogcommitdiff
path: root/res/values
diff options
context:
space:
mode:
authorJules Aguillon2025-07-27 22:09:45 +0200
committerJules Aguillon2025-12-28 17:56:37 +0100
commit98c1b8db82c0da8f49eb12d18c9001a57009eca5 (patch)
treefaddcbd29f19cb5c526f0a37c078ec11fc901c85 /res/values
parentdfaf4dbb5766bf134cbf97d0516493e2256d2e5a (diff)
downloadunexpected-keyboard-98c1b8db82c0da8f49eb12d18c9001a57009eca5.tar.gz
unexpected-keyboard-98c1b8db82c0da8f49eb12d18c9001a57009eca5.zip
Candidates view
The `CandidatesView` is implemented as a `LinearLayout` that is divided horizontally with up to 3 `TextView`. It might in the future contain buttons on the sides. The candidate view is nested into the input view rather than using Android's `setCandidatesView` and callbacks as the API is unreliable and complicated. The first suggestion goes in the middle to be more accessible. The second suggestion goes on the right to be more accessible to the right-handed, because it must go somewhere.
Diffstat (limited to 'res/values')
-rw-r--r--res/values/styles.xml6
-rw-r--r--res/values/values.xml1
2 files changed, 7 insertions, 0 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 9763c04..5b00ca3 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -1,5 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
+ <!-- Candidates view -->
+ <style name="candidates_item">
+ <item name="android:gravity">center</item>
+ <item name="android:textSize">18sp</item>
+ <item name="android:textColor">?attr/colorLabel</item>
+ </style>
<!-- Emoji pane -->
<style name="emojiTypeButton">
<item name="android:padding">1px</item>
diff --git a/res/values/values.xml b/res/values/values.xml
index 169fe1a..18155a8 100644
--- a/res/values/values.xml
+++ b/res/values/values.xml
@@ -6,6 +6,7 @@
<dimen name="emoji_text_size">28dp</dimen>
<dimen name="clipboard_view_height">300dp</dimen>
<dimen name="pref_button_size">28dp</dimen>
+ <dimen name="candidates_spacing">8dp</dimen>
<!-- Will be overwritten automatically by Gradle for the debug build variant -->
<bool name="debug_logs">false</bool>
</resources>