Updated Layouts (markdown)

BlackyHawky 2024-10-03 23:20:38 +02:00
parent df70fd772f
commit b1abaf33d4

@ -120,6 +120,10 @@ Each label can have the following properties:
| followKeyHintLabelRatio | 320 | disableKeyHintLabel | 1073741824 | | followKeyHintLabelRatio | 320 | disableKeyHintLabel | 1073741824 |
| hasPopupHint | 512 | disableAdditionalPopupKeys | 2147483648 | | 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._
<br>
_The default hex values are listed [here](https://github.com/Helium314/HeliBoard/blob/71d98e1e4f05d720f61cdcb7f7ba8b97e32ed7de/app/src/main/res/values/attrs.xml#L251)._
</details> </details>
<br> <br>
@ -306,10 +310,6 @@ Here are the different classes:
``` ```
</details> </details>
# 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 # 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 * 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 ```json
// Keyboard view space bar with numpad view space bar icon // Keyboard view space bar with numpad view space bar icon
{ "label": "!icon/space_key_for_number_layout|!code/32", "labelFlags": 4, "width": -1 }, { "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 } { "label": "@|!code/97", "width": -1 }
``` ```
</details> </details>
* 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.
<details>
<summary><b><i>Click to see example with `!autoColumnOrder!X`</i></b></summary>
<br>
```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": "&" }
] }
},
```
</details>
# 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.