1
0
Fork 0

added v-shaped numpad layout

This commit is contained in:
sspanak 2025-02-02 15:20:56 +02:00 committed by Dimo Karaivanov
parent 4303e03448
commit e6950c370c
29 changed files with 228 additions and 82 deletions

View file

@ -9,12 +9,7 @@
<View style="@style/TTheme.Keyboard.TopSeparator" />
<include layout="@layout/panel_numpad_status_bar" />
<LinearLayout
android:id="@+id/main_soft_keys"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout style="@style/TTheme.Numpad.Column.Container" android:id="@+id/main_soft_keys">
<include layout="@layout/panel_numpad_left" />
<include layout="@layout/panel_numpad_digits" />
<include layout="@layout/panel_numpad_text_editing" />

View file

@ -27,7 +27,9 @@
<include layout="@layout/key_overlay_icons" />
</RelativeLayout>
<View style="@style/TTheme.Numpad.Key.Large.Placeholder" />
<io.github.sspanak.tt9.ui.main.keys.SoftKeyPunctuation
style="@style/TTheme.Numpad.Key.Large.Placeholder"
android:id="@+id/soft_key_punctuation_101" />
</LinearLayout>
@ -93,7 +95,9 @@
<include layout="@layout/key_overlay_icons" />
</RelativeLayout>
<View style="@style/TTheme.Numpad.Key.Large.Placeholder" />
<io.github.sspanak.tt9.ui.main.keys.SoftKeyPunctuation
style="@style/TTheme.Numpad.Key.Large.Placeholder"
android:id="@+id/soft_key_punctuation_102" />
</LinearLayout>
</merge>

View file

@ -191,4 +191,7 @@
<string name="punctuation_order_forbidden_char">Забранен символ:%1$s</string>
<string name="punctuation_order_forbidden_chars">Забранени символи:%1$s</string>
<string name="pref_category_geometry">Геометрия</string>
<string name="pref_numpad_shape">Форма</string>
<string name="pref_numpad_shape_square">Квадрат</string>
<string name="pref_numpad_shape_v">V-образна</string>
</resources>

View file

@ -179,4 +179,7 @@
<string name="punctuation_order_forbidden_chars">Verbotene Zeichen:%1$s</string>
<string name="function_filter_suggestions_not_available">Das Filtern ist in dieser Sprache nicht möglich.</string>
<string name="pref_category_geometry">Geometrie</string>
<string name="pref_numpad_shape">Form</string>
<string name="pref_numpad_shape_square">Quadrat</string>
<string name="pref_numpad_shape_v">V-Form</string>
</resources>

View file

@ -189,4 +189,7 @@
<string name="punctuation_order_forbidden_char">Carácter prohibido:%1$s</string>
<string name="punctuation_order_forbidden_chars">Caracteres prohibidos:%1$s</string>
<string name="pref_category_geometry">Geometría</string>
<string name="pref_numpad_shape">Forma</string>
<string name="pref_numpad_shape_square">Cuadrado</string>
<string name="pref_numpad_shape_v">Forma de V</string>
</resources>

View file

@ -187,4 +187,7 @@
<string name="punctuation_order_forbidden_char">Caractère interdit:%1$s</string>
<string name="punctuation_order_forbidden_chars">Caractères interdits:%1$s</string>
<string name="pref_category_geometry">Géométrie</string>
<string name="pref_numpad_shape">Forme</string>
<string name="pref_numpad_shape_square">Carré</string>
<string name="pref_numpad_shape_v">Forme en V</string>
</resources>

View file

@ -179,5 +179,8 @@
<string name="punctuation_order_forbidden_chars">Caratteri vietati:%1$s</string>
<string name="function_filter_suggestions_not_available">Il filtraggio non è possibile in questa lingua.</string>
<string name="pref_category_geometry">Geometria</string>
<string name="pref_numpad_shape">Forma</string>
<string name="pref_numpad_shape_square">Quadrato</string>
<string name="pref_numpad_shape_v">Forma a V</string>
</resources>

View file

@ -192,4 +192,7 @@
<string name="punctuation_order_forbidden_chars">תווים אסורים:%1$s</string>
<string name="function_filter_suggestions_not_available">לא ניתן לסנן בשפה זו.</string>
<string name="pref_category_geometry">גיאומטריה</string>
<string name="pref_numpad_shape">צורה</string>
<string name="pref_numpad_shape_square">ריבוע</string>
<string name="pref_numpad_shape_v">צורת V</string>
</resources>

View file

@ -198,4 +198,7 @@
<string name="punctuation_order_forbidden_char">Draudžiamas simbolis:%1$s</string>
<string name="punctuation_order_forbidden_chars">Draudžiami simboliai:%1$s</string>
<string name="pref_category_geometry">Geometrija</string>
<string name="pref_numpad_shape">Forma</string>
<string name="pref_numpad_shape_square">Kvadratas</string>
<string name="pref_numpad_shape_v">V formos</string>
</resources>

View file

@ -178,4 +178,7 @@
<string name="punctuation_order_forbidden_chars">Verboden tekens:%1$s</string>
<string name="function_filter_suggestions_not_available">Het filteren is niet mogelijk in deze taal.</string>
<string name="pref_category_geometry">Geometrie</string>
<string name="pref_numpad_shape">Vorm</string>
<string name="pref_numpad_shape_square">Vierkant</string>
<string name="pref_numpad_shape_v">V-vorm</string>
</resources>

View file

@ -192,4 +192,7 @@
<string name="punctuation_order_forbidden_chars">Caracteres proibidos:%1$s</string>
<string name="function_filter_suggestions_not_available">Não é possível filtrar neste idioma.</string>
<string name="pref_category_geometry">Geometria</string>
<string name="pref_numpad_shape">Forma</string>
<string name="pref_numpad_shape_square">Quadrado</string>
<string name="pref_numpad_shape_v">Forma em V</string>
</resources>

View file

@ -189,4 +189,7 @@
<string name="punctuation_order_forbidden_char">Запрещённый символ:%1$s</string>
<string name="punctuation_order_forbidden_chars">Запрещённые символы:%1$s</string>
<string name="pref_category_geometry">Геометрия</string>
<string name="pref_numpad_shape">Форма</string>
<string name="pref_numpad_shape_square">Квадрат</string>
<string name="pref_numpad_shape_v">V-образная форма</string>
</resources>

View file

@ -192,4 +192,7 @@
<string name="punctuation_order_forbidden_char">Yasaklı karakter:%1$s</string>
<string name="punctuation_order_forbidden_chars">Yasaklı karakterler:%1$s</string>
<string name="pref_category_geometry">Geometri</string>
<string name="pref_numpad_shape">Şekil</string>
<string name="pref_numpad_shape_square">Kare</string>
<string name="pref_numpad_shape_v">V-şekli</string>
</resources>

View file

@ -200,4 +200,7 @@
<string name="punctuation_order_forbidden_char">Заборонений символ:%1$s</string>
<string name="punctuation_order_forbidden_chars">Заборонені символи:%1$s</string>
<string name="pref_category_geometry">Геометрія</string>
<string name="pref_numpad_shape">Форма</string>
<string name="pref_numpad_shape_square">Квадрат</string>
<string name="pref_numpad_shape_v">V-подібна</string>
</resources>

View file

@ -83,6 +83,10 @@
<string name="pref_layout_tray">Suggestion list only</string>
<string name="pref_numpad_alignment">Alignment</string>
<string name="pref_numpad_key_height">Height</string>
<string name="pref_numpad_shape">Shape</string>
<string name="pref_numpad_shape_square">Square</string>
<string name="pref_numpad_shape_v">V-Shape</string>
<string name="pref_numpad_shape_long_space">Long Spacebar</string>
<string name="pref_numpad_width">Width</string>
<string name="pref_predict_word_pairs">Learn Word Pairs</string>
<string name="pref_predict_word_pairs_summary">Remember commonly used phrases to improve the suggestions accuracy.</string>

View file

@ -203,6 +203,13 @@
Numpad Columns
*******************************************-->
<style name="TTheme.Numpad.Column.Container" parent="">
<item name="android:gravity">bottom</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:orientation">horizontal</item>
</style>
<style name="TTheme.Numpad.Column" parent="">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">wrap_content</item>
@ -338,10 +345,9 @@
<item name="rippleColor">@color/key_ok_ripple</item>
</style>
<style name="TTheme.Numpad.Key.Large.Placeholder">
<item name="android:layout_height">@dimen/numpad_key_height</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_margin">@dimen/numpad_key_spacing</item>
<style name="TTheme.Numpad.Key.Large.Placeholder" parent="TTheme.Numpad.Key.Number">
<item name="android:textColor">@android:color/transparent</item>
<item name="android:background">@android:color/transparent</item>
</style>
</resources>

View file

@ -15,6 +15,10 @@
app:title="@string/pref_layout" />
<PreferenceCategory app:title="@string/pref_category_geometry">
<DropDownPreference
app:key="pref_numpad_shape"
app:title="@string/pref_numpad_shape" />
<DropDownPreference
app:key="pref_numpad_alignment"
app:title="@string/pref_numpad_alignment" />