Skip to content

Commit d8536a0

Browse files
authored
Merge pull request #33 from margual56/spanish-qwerty
Added Spanish QWERTY layout
2 parents 9c72154 + 97807c9 commit d8536a0

File tree

4 files changed

+141
-0
lines changed

4 files changed

+141
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/activities/SettingsActivity.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import com.simplemobiletools.keyboard.helpers.LANGUAGE_ENGLISH_QWERTY
1212
import com.simplemobiletools.keyboard.helpers.LANGUAGE_ENGLISH_QWERTZ
1313
import com.simplemobiletools.keyboard.helpers.LANGUAGE_FRENCH
1414
import com.simplemobiletools.keyboard.helpers.LANGUAGE_RUSSIAN
15+
import com.simplemobiletools.keyboard.helpers.LANGUAGE_SPANISH
1516
import kotlinx.android.synthetic.main.activity_settings.*
1617
import java.util.*
1718
import kotlin.system.exitProcess
@@ -116,6 +117,7 @@ class SettingsActivity : SimpleActivity() {
116117
RadioItem(LANGUAGE_ENGLISH_QWERTY, getKeyboardLanguageText(LANGUAGE_ENGLISH_QWERTY)),
117118
RadioItem(LANGUAGE_ENGLISH_QWERTZ, getKeyboardLanguageText(LANGUAGE_ENGLISH_QWERTZ)),
118119
RadioItem(LANGUAGE_FRENCH, getKeyboardLanguageText(LANGUAGE_FRENCH)),
120+
RadioItem(LANGUAGE_SPANISH, getKeyboardLanguageText(LANGUAGE_SPANISH)),
119121
RadioItem(LANGUAGE_RUSSIAN, getKeyboardLanguageText(LANGUAGE_RUSSIAN))
120122
)
121123

@@ -131,6 +133,7 @@ class SettingsActivity : SimpleActivity() {
131133
LANGUAGE_FRENCH -> getString(R.string.translation_french)
132134
LANGUAGE_RUSSIAN -> getString(R.string.translation_russian)
133135
LANGUAGE_ENGLISH_QWERTZ -> "${getString(R.string.translation_english)} (QWERTZ)"
136+
LANGUAGE_SPANISH -> getString(R.string.translation_spanish)
134137
else -> "${getString(R.string.translation_english)} (QWERTY)"
135138
}
136139
}

app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ const val LANGUAGE_ENGLISH_QWERTY = 0
2121
const val LANGUAGE_RUSSIAN = 1
2222
const val LANGUAGE_FRENCH = 2
2323
const val LANGUAGE_ENGLISH_QWERTZ = 3
24+
const val LANGUAGE_SPANISH = 4

app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
246246
LANGUAGE_FRENCH -> R.xml.keys_letters_french
247247
LANGUAGE_RUSSIAN -> R.xml.keys_letters_russian
248248
LANGUAGE_ENGLISH_QWERTZ -> R.xml.keys_letters_english_qwertz
249+
LANGUAGE_SPANISH -> R.xml.keys_letters_spanish_qwerty
249250
else -> R.xml.keys_letters_english_qwerty
250251
}
251252
}
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
3+
<Row>
4+
<Key
5+
app:keyEdgeFlags="left"
6+
app:keyLabel="q"
7+
app:popupCharacters="1"
8+
app:popupKeyboard="@xml/keyboard_popup_template"
9+
app:topSmallNumber="1"/>
10+
<Key
11+
app:keyLabel="w"
12+
app:popupCharacters="2"
13+
app:popupKeyboard="@xml/keyboard_popup_template"
14+
app:topSmallNumber="2"/>
15+
<Key
16+
app:keyLabel="e"
17+
app:popupCharacters="êè3éëēęė"
18+
app:popupKeyboard="@xml/keyboard_popup_template"
19+
app:topSmallNumber="3"/>
20+
<Key
21+
app:keyLabel="r"
22+
app:popupCharacters=""
23+
app:popupKeyboard="@xml/keyboard_popup_template"
24+
app:topSmallNumber="4"/>
25+
<Key
26+
app:keyLabel="t"
27+
app:popupCharacters="5"
28+
app:popupKeyboard="@xml/keyboard_popup_template"
29+
app:topSmallNumber="5"/>
30+
<Key
31+
app:keyLabel="y"
32+
app:popupCharacters="ÿ6ý¥"
33+
app:popupKeyboard="@xml/keyboard_popup_template"
34+
app:topSmallNumber="6"/>
35+
<Key
36+
app:keyLabel="u"
37+
app:popupCharacters="ūûü7úùű"
38+
app:popupKeyboard="@xml/keyboard_popup_template"
39+
app:topSmallNumber="7"/>
40+
<Key
41+
app:keyLabel="i"
42+
app:popupCharacters="ïīì8íî"
43+
app:popupKeyboard="@xml/keyboard_popup_template"
44+
app:topSmallNumber="8"/>
45+
<Key
46+
app:keyLabel="o"
47+
app:popupCharacters="őõōöôò9ó"
48+
app:popupKeyboard="@xml/keyboard_popup_template"
49+
app:topSmallNumber="9"/>
50+
<Key
51+
app:keyEdgeFlags="right"
52+
app:keyLabel="p"
53+
app:popupCharacters="0"
54+
app:popupKeyboard="@xml/keyboard_popup_template"
55+
app:topSmallNumber="0"/>
56+
</Row>
57+
<Row>
58+
<Key
59+
app:horizontalGap="5%"
60+
app:keyEdgeFlags="left"
61+
app:keyLabel="a"
62+
app:popupCharacters="áäàâãåāæą"
63+
app:popupKeyboard="@xml/keyboard_popup_template"/>
64+
<Key
65+
app:keyLabel="s"
66+
app:popupCharacters="śßš"
67+
app:popupKeyboard="@xml/keyboard_popup_template"/>
68+
<Key
69+
app:keyLabel="d"
70+
app:popupCharacters="ďđ"
71+
app:popupKeyboard="@xml/keyboard_popup_template"/>
72+
<Key app:keyLabel="f"/>
73+
<Key app:keyLabel="g"/>
74+
<Key app:keyLabel="h"/>
75+
<Key app:keyLabel="j"/>
76+
<Key app:keyLabel="k"/>
77+
<Key
78+
app:keyLabel="l"
79+
app:popupCharacters="ĺľł"
80+
app:popupKeyboard="@xml/keyboard_popup_template"/>
81+
<Key
82+
app:keyEdgeFlags="right"
83+
app:keyLabel="ñ"/>
84+
</Row>
85+
<Row>
86+
<Key
87+
app:code="-1"
88+
app:keyEdgeFlags="left"
89+
app:keyIcon="@drawable/ic_caps_outline_vector"
90+
app:keyWidth="15%p"/>
91+
<Key
92+
app:keyLabel="z"
93+
app:popupCharacters="źžż"
94+
app:popupKeyboard="@xml/keyboard_popup_template"/>
95+
<Key app:keyLabel="x"/>
96+
<Key
97+
app:keyLabel="c"
98+
app:popupCharacters="čçć"
99+
app:popupKeyboard="@xml/keyboard_popup_template"/>
100+
<Key app:keyLabel="v"/>
101+
<Key app:keyLabel="b"/>
102+
<Key
103+
app:keyLabel="n"
104+
app:popupCharacters="ňń"
105+
app:popupKeyboard="@xml/keyboard_popup_template"/>
106+
<Key app:keyLabel="m"/>
107+
<Key
108+
app:code="-5"
109+
app:isRepeatable="true"
110+
app:keyEdgeFlags="right"
111+
app:keyIcon="@drawable/ic_clear_vector"
112+
app:keyWidth="15%p"/>
113+
</Row>
114+
<Row>
115+
<Key
116+
app:code="-2"
117+
app:keyEdgeFlags="left"
118+
app:keyLabel="123"
119+
app:keyWidth="15%p"/>
120+
<Key
121+
app:keyLabel=","
122+
app:keyWidth="10%p"/>
123+
<Key
124+
app:code="32"
125+
app:isRepeatable="true"
126+
app:keyWidth="50%p"/>
127+
<Key
128+
app:keyLabel="."
129+
app:keyWidth="10%p"/>
130+
<Key
131+
app:code="-4"
132+
app:keyEdgeFlags="right"
133+
app:keyIcon="@drawable/ic_enter_vector"
134+
app:keyWidth="15%p"/>
135+
</Row>
136+
</Keyboard>

0 commit comments

Comments
 (0)