diff --git a/Layouts.md b/Layouts.md index e9ac888..e5c4ad7 100644 --- a/Layouts.md +++ b/Layouts.md @@ -119,6 +119,10 @@ Each label can have the following properties: | followKeyLabelRatio | 192 | keepBackgroundAspectRatio | 1048576 | | followKeyHintLabelRatio | 320 | disableKeyHintLabel | 1073741824 | | hasPopupHint | 512 | disableAdditionalPopupKeys | 2147483648 | + + _*To find the flag values, the hex value of each `labelFlags` was converted to base ten by searching for 0x## in the DuckDuckGo search engine._ +
+ _The default hex values are listed [here](https://github.com/Helium314/HeliBoard/blob/71d98e1e4f05d720f61cdcb7f7ba8b97e32ed7de/app/src/main/res/values/attrs.xml#L251)._ @@ -306,10 +310,6 @@ Here are the different classes: ``` -# Examples of JSON files - -[Here](https://github.com/Helium314/HeliBoard/discussions/1132#discussion-7260853) are some sample JSON files that customize all the keyboard views. - # Tips * To hide a hint for a specific key, add the code `{ "type": "placeholder" }` to the first position when editing popup labels. The hint will not appear regardless of Heliboard settings @@ -345,7 +345,42 @@ Here are the different classes: ```json // Keyboard view space bar with numpad view space bar icon { "label": "!icon/space_key_for_number_layout|!code/32", "labelFlags": 4, "width": -1 }, - // @ is displayed on the key, but the letter a will be written + // @ is displayed on the key, but the letter `a` will be written { "label": "@|!code/97", "width": -1 } ``` + +* In popups, to define a precise number of columns for displaying characters, you need to use the `{ "label": "!autoColumnOrder!X" }`, code where `X` is the number of columns. + +
+ Click to see example with `!autoColumnOrder!X` +
+ + ```json + { "label": ".", "width": 0.1, "type": "function", "popup": { "relevant": + [ + { "label": "!autoColumnOrder!4" }, + { "label": "," }, + { "label": "?" }, + { "label": "!" }, + { "label": "#" }, + { "label": "(" }, + { "label": ")" }, + { "label": "/" }, + { "label": ";" }, + { "label": "@" }, + { "label": "'" }, + { "label": ":" }, + { "label": "-" }, + { "label": "\"" }, + { "label": "+" }, + { "label": "%" }, + { "label": "&" } + ] } + }, + ``` +
+ +# Examples of JSON files + +[Here](https://github.com/Helium314/HeliBoard/discussions/1132#discussion-7260853) are some sample JSON files that customize all the keyboard views. \ No newline at end of file