diff options
| author | Jules Aguillon | 2025-12-28 19:02:45 +0100 |
|---|---|---|
| committer | GitHub | 2025-12-28 19:02:45 +0100 |
| commit | 4d4c22b4e21505000d92fa3b6c1f400379c51cd4 (patch) | |
| tree | 0d8d7373575c4fc98cb342a4ab73f1192f700f4e /res | |
| parent | dfaf4dbb5766bf134cbf97d0516493e2256d2e5a (diff) | |
| parent | bdb05bcef060ee2aefab7663bb5441ea1398dd95 (diff) | |
| download | unexpected-keyboard-4d4c22b4e21505000d92fa3b6c1f400379c51cd4.tar.gz unexpected-keyboard-4d4c22b4e21505000d92fa3b6c1f400379c51cd4.zip | |
Merge pull request #1150 from Julow/candidates_view
Candidates view
Diffstat (limited to 'res')
| -rw-r--r-- | res/layout/keyboard.xml | 9 | ||||
| -rw-r--r-- | res/values/styles.xml | 6 | ||||
| -rw-r--r-- | res/values/values.xml | 1 |
3 files changed, 15 insertions, 1 deletions
diff --git a/res/layout/keyboard.xml b/res/layout/keyboard.xml index 8af048d..82575be 100644 --- a/res/layout/keyboard.xml +++ b/res/layout/keyboard.xml @@ -1,2 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> -<juloo.keyboard2.Keyboard2View xmlns:android="http://schemas.android.com/apk/res/android" android:hardwareAccelerated="false" android:background="?attr/colorKeyboard"/> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:hardwareAccelerated="false" android:orientation="vertical" android:background="?attr/colorKeyboard"> + <juloo.keyboard2.CandidatesView android:id="@+id/candidates_view" android:layout_width="match_parent" android:layout_height="48dp" android:orientation="horizontal"> + <TextView android:id="@+id/candidates_left" style="@style/candidates_item" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1"/> + <TextView android:id="@+id/candidates_middle" style="@style/candidates_item" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1"/> + <TextView android:id="@+id/candidates_right" style="@style/candidates_item" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1"/> + </juloo.keyboard2.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 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> |
