mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-20 14:19:08 +00:00
Add full-featured number row layout and set it as default; set existing layout as basic.
This commit is contained in:
parent
c67cd07ed6
commit
27d46eb851
4 changed files with 56 additions and 124 deletions
44
app/src/main/assets/layouts/number_row/number_row.json
Normal file
44
app/src/main/assets/layouts/number_row/number_row.json
Normal file
|
@ -0,0 +1,44 @@
|
|||
[
|
||||
[
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "!" },
|
||||
"default": { "label": "1", "popup": { "relevant": [{ "label": "¹" }, { "label": "½" }, { "label": "⅓" }, { "label": "¼" }, { "label": "⅛" }] } }
|
||||
},
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "@" },
|
||||
"default": { "label": "2", "popup": { "relevant": [{ "label": "²" }, { "label": "⅔" }] } }
|
||||
},
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "#" },
|
||||
"default": { "label": "3", "popup": { "relevant": [{ "label": "³" }, { "label": "¾" }, { "label": "⅜" }] } }
|
||||
},
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "$" },
|
||||
"default": { "label": "4", "popup": { "relevant": [{ "label": "⁴" }] } }
|
||||
},
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "%" },
|
||||
"default": { "label": "5", "popup": { "relevant": [{ "label": "⁵" }, { "label": "⅝" }] } }
|
||||
},
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "^" },
|
||||
"default": { "label": "6", "popup": { "relevant": [{ "label": "⁶" }] } }
|
||||
},
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "&" },
|
||||
"default": { "label": "7", "popup": { "relevant": [{ "label": "⁷" }, { "label": "⅞" }] } }
|
||||
},
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "*" },
|
||||
"default": { "label": "8", "popup": { "relevant": [{ "label": "⁸" }] } }
|
||||
},
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "(" },
|
||||
"default": { "label": "9", "popup": { "relevant": [{ "label": "⁹" }] } }
|
||||
},
|
||||
{ "$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": ")" },
|
||||
"default": { "label": "0", "popup": { "relevant": [{ "label": "⁰" }, { "label": "ⁿ" }, { "label": "∅" }] } }
|
||||
}
|
||||
]
|
||||
]
|
|
@ -1,124 +0,0 @@
|
|||
[
|
||||
[
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "!" },
|
||||
"default": {
|
||||
"label": "1",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "¹" }, { "label": "½" }, { "label": "⅓" }, { "label": "¼" }, { "label": "⅛" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "@" },
|
||||
"default": {
|
||||
"label": "2",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "²" }, { "label": "⅔" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "#" },
|
||||
"default": {
|
||||
"label": "3",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "³" }, { "label": "¾" }, { "label": "⅜" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "$" },
|
||||
"default": {
|
||||
"label": "4",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "⁴" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "%" },
|
||||
"default": {
|
||||
"label": "5",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "⁵" }, { "label": "⅝" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "^" },
|
||||
"default": {
|
||||
"label": "6",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "⁶" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "&" },
|
||||
"default": {
|
||||
"label": "7",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "⁷" }, { "label": "⅞" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "*" },
|
||||
"default": {
|
||||
"label": "8",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "⁸" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": "(" },
|
||||
"default": {
|
||||
"label": "9",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "⁹" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$": "shift_state_selector",
|
||||
"manualOrLocked": { "label": ")" },
|
||||
"default": {
|
||||
"label": "0",
|
||||
"popup": {
|
||||
"relevant": [
|
||||
{ "label": "⁰" }, { "label": "ⁿ" }, { "label": "∅" }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
10
app/src/main/assets/layouts/number_row/number_row_basic.txt
Normal file
10
app/src/main/assets/layouts/number_row/number_row_basic.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
1 ¹ ½ ⅓ ¼ ⅛
|
||||
2 ² ⅔
|
||||
3 ³ ¾ ⅜
|
||||
4 ⁴
|
||||
5 ⁵ ⅝
|
||||
6 ⁶
|
||||
7 ⁷ ⅞
|
||||
8 ⁸
|
||||
9 ⁹
|
||||
0 ⁰ ⁿ ∅
|
|
@ -559,6 +559,8 @@ disposition rather than other common dispositions for Latin languages. -->
|
|||
<string name="layout_numpad_landscape" tools:keep="@string/layout_numpad_landscape">Numpad (landscape)</string>
|
||||
<!-- Name for number row layout -->
|
||||
<string name="layout_number_row" tools:keep="@string/layout_number_row">Number row</string>
|
||||
<!-- Name for number row basic layout -->
|
||||
<string name="layout_number_row_basic" tools:keep="@string/layout_number_row_basic">Number row (basic)</string>
|
||||
<!-- Name for bottom row layout in emoji view -->
|
||||
<string name="layout_emoji_bottom_row" tools:keep="@string/layout_emoji_bottom_row">Emoji bottom row</string>
|
||||
<!-- Name for bottom row layout in clipboard view -->
|
||||
|
|
Loading…
Add table
Reference in a new issue