From 51b330c6168a8b0e0c16482254d4674fbe5476c7 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 13 Nov 2022 00:24:23 +0100 Subject: Allow switching quickly between two layouts A new option allow to choose a secondary layout, the switching key is placed on the top edge of the space bar. The "Programming layout" option was basically doing that but it was possible to choose from a few layouts only. It is improved and renamed. The 'LayoutListPreference' allows setting the string for the first entry but otherwise share the rest of the array. Add nice icons from materialdesignicons. --- res/values/arrays.xml | 16 ++-------------- res/values/attrs.xml | 3 +++ res/values/strings.xml | 4 ++-- 3 files changed, 7 insertions(+), 16 deletions(-) (limited to 'res/values') diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 50c140e..17c4bd9 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -1,7 +1,7 @@ - system + none azerty qwerty qwerty_pt @@ -28,7 +28,7 @@ hindi - @string/pref_layout_e_system + None AZERTY QWERTY QWERTY (Brasileiro) @@ -54,18 +54,6 @@ বাংলা हिन्दी - - none - qwerty - dvorak - colemak - - - @string/pref_programming_layout_none - QWERTY - Dvorak - Colemak - @string/pref_accents_e_all_installed @string/pref_accents_e_selected diff --git a/res/values/attrs.xml b/res/values/attrs.xml index b012a7c..693ef89 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -3,4 +3,7 @@ + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index f7f3a8b..63c55ab 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -18,8 +18,8 @@ Automatic capitalisation Press Shift at the beginning of a sentence Add keys to the keyboard - Keyboard layout for programming - None + Secondary layout + None Typing Swiping distance Distance of characters in the corners of the keys (%s) -- cgit v1.2.3