mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-01 04:12:12 +00:00
add info about labelFlags
This commit is contained in:
parent
eb8d204d00
commit
ca67fc71a6
2 changed files with 25 additions and 23 deletions
|
@ -71,7 +71,9 @@ If the layout has exactly 2 keys in the bottom row, these keys will replace comm
|
|||
* `0.1` for phones
|
||||
* `0.09` for tablets
|
||||
* If the sum of widths in a row is greater than 1, keys are rescaled to fit on the screen
|
||||
* `labelFlags`: allows specific effects, see [here](app/src/main/res/values/attrs.xml) in the section _keyLabelFlags_ for names and numeric values
|
||||
* `labelFlags`: allows specific effects, see [here](app/src/main/res/values/attrs.xml#L251-L287) in the section _keyLabelFlags_ for names and numeric values
|
||||
* Since json does not support hexadecimal-values, you have to use the decimal values in the comments in the same line.
|
||||
* In case you want to apply multiple flags, you will need to combine them using [bitwise OR](https://en.wikipedia.org/wiki/Bitwise_operation#OR). In most cases this means you can just add the individual values, only exceptions are `fontDefault`, `followKeyLabelRatio`, `followKeyHintLabelRatio`, and `autoScale`.
|
||||
|
||||
## Labels
|
||||
In the simple format you only specify labels, in json layouts you do it explicitly via the `label` property.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue