feat: added number keys row
This commit is contained in:
parent
a39442976a
commit
14e94ea8cd
|
@ -11,6 +11,7 @@
|
|||
<declare-styleable name="MyKeyboard">
|
||||
<attr name="keyWidth" format="fraction" />
|
||||
<attr name="horizontalGap" format="fraction" />
|
||||
<attr name="isNumRow" format="boolean" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="MyKeyboard_Key">
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row app:keyWidth="9.091%p">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row app:keyWidth="9.05%p">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
@ -125,17 +159,17 @@
|
|||
app:code="-6"
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyIcon="@drawable/ic_emoji_emotions_outline_vector"
|
||||
app:secondaryKeyIcon="@drawable/ic_language_outlined"
|
||||
app:keyWidth="10%p" />
|
||||
app:keyWidth="10%p"
|
||||
app:secondaryKeyIcon="@drawable/ic_language_outlined" />
|
||||
<Key
|
||||
app:code="32"
|
||||
app:isRepeatable="true"
|
||||
app:keyWidth="40%p" />
|
||||
<Key
|
||||
app:keyLabel="."
|
||||
app:keyWidth="10%p"
|
||||
app:popupCharacters=",?!;:…"
|
||||
app:popupKeyboard="@xml/keyboard_popup_template"
|
||||
app:keyWidth="10%p" />
|
||||
app:popupKeyboard="@xml/keyboard_popup_template" />
|
||||
<Key
|
||||
app:code="-4"
|
||||
app:keyEdgeFlags="right"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row>
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
|
@ -1,5 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<Row app:isNumRow="true">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyLabel="1"
|
||||
app:topSmallNumber="1" />
|
||||
<Key
|
||||
app:keyLabel="2"
|
||||
app:topSmallNumber="2" />
|
||||
<Key
|
||||
app:keyLabel="3"
|
||||
app:topSmallNumber="3" />
|
||||
<Key
|
||||
app:keyLabel="4"
|
||||
app:topSmallNumber="4" />
|
||||
<Key
|
||||
app:keyLabel="5"
|
||||
app:topSmallNumber="5" />
|
||||
<Key
|
||||
app:keyLabel="6"
|
||||
app:topSmallNumber="6" />
|
||||
<Key
|
||||
app:keyLabel="7"
|
||||
app:topSmallNumber="7" />
|
||||
<Key
|
||||
app:keyLabel="8"
|
||||
app:topSmallNumber="8" />
|
||||
<Key
|
||||
app:keyLabel="9"
|
||||
app:topSmallNumber="9" />
|
||||
<Key
|
||||
app:keyEdgeFlags="right"
|
||||
app:keyLabel="0"
|
||||
app:topSmallNumber="0" />
|
||||
</Row>
|
||||
<Row app:keyWidth="8.33%p">
|
||||
<Key
|
||||
app:keyEdgeFlags="left"
|
||||
|
|
Loading…
Reference in New Issue