/ime/latinime/res/xml/kbd_qwerty.xml

http://eyes-free.googlecode.com/ · XML · 338 lines · 319 code · 1 blank · 18 comment · 0 complexity · debab31a9e7c3477d8203a6291c581c5 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /*
  4. **
  5. ** Copyright 2008, The Android Open Source Project
  6. **
  7. ** Licensed under the Apache License, Version 2.0 (the "License");
  8. ** you may not use this file except in compliance with the License.
  9. ** You may obtain a copy of the License at
  10. **
  11. ** http://www.apache.org/licenses/LICENSE-2.0
  12. **
  13. ** Unless required by applicable law or agreed to in writing, software
  14. ** distributed under the License is distributed on an "AS IS" BASIS,
  15. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. ** See the License for the specific language governing permissions and
  17. ** limitations under the License.
  18. */
  19. -->
  20. <Keyboard
  21. xmlns:android="http://schemas.android.com/apk/res/android"
  22. android:keyWidth="10%p"
  23. android:horizontalGap="0px"
  24. android:verticalGap="@dimen/key_bottom_gap"
  25. android:keyHeight="@dimen/key_height"
  26. >
  27. <Row
  28. android:rowEdgeFlags="top"
  29. >
  30. <Key
  31. android:keyLabel="q"
  32. android:popupKeyboard="@xml/kbd_popup_template"
  33. android:popupCharacters="@string/alternates_for_q"
  34. android:keyEdgeFlags="left" />
  35. <Key
  36. android:keyLabel="w"
  37. android:popupKeyboard="@xml/kbd_popup_template"
  38. android:popupCharacters="@string/alternates_for_w" />
  39. <Key
  40. android:keyLabel="e"
  41. android:popupKeyboard="@xml/kbd_popup_template"
  42. android:popupCharacters="@string/alternates_for_e" />
  43. <Key
  44. android:keyLabel="r"
  45. android:popupKeyboard="@xml/kbd_popup_template"
  46. android:popupCharacters="@string/alternates_for_r" />
  47. <Key
  48. android:keyLabel="t"
  49. android:popupKeyboard="@xml/kbd_popup_template"
  50. android:popupCharacters="@string/alternates_for_t" />
  51. <Key
  52. android:keyLabel="y"
  53. android:popupKeyboard="@xml/kbd_popup_template"
  54. android:popupCharacters="@string/alternates_for_y" />
  55. <Key
  56. android:keyLabel="u"
  57. android:popupKeyboard="@xml/kbd_popup_template"
  58. android:popupCharacters="@string/alternates_for_u" />
  59. <Key
  60. android:keyLabel="i"
  61. android:popupKeyboard="@xml/kbd_popup_template"
  62. android:popupCharacters="@string/alternates_for_i" />
  63. <Key
  64. android:keyLabel="o"
  65. android:popupKeyboard="@xml/kbd_popup_narrow_template"
  66. android:popupCharacters="@string/alternates_for_o" />
  67. <Key
  68. android:keyLabel="p"
  69. android:popupKeyboard="@xml/kbd_popup_template"
  70. android:popupCharacters="@string/alternates_for_p"
  71. android:keyEdgeFlags="right" />
  72. </Row>
  73. <Row>
  74. <Key
  75. android:keyLabel="a"
  76. android:popupKeyboard="@xml/kbd_popup_template"
  77. android:popupCharacters="@string/alternates_for_a"
  78. android:horizontalGap="5%p"
  79. android:keyEdgeFlags="left" />
  80. <Key
  81. android:keyLabel="s"
  82. android:popupKeyboard="@xml/kbd_popup_template"
  83. android:popupCharacters="@string/alternates_for_s" />
  84. <Key
  85. android:keyLabel="d"
  86. android:popupKeyboard="@xml/kbd_popup_template"
  87. android:popupCharacters="@string/alternates_for_d" />
  88. <Key
  89. android:keyLabel="f" />
  90. <Key
  91. android:keyLabel="g"
  92. android:popupKeyboard="@xml/kbd_popup_template"
  93. android:popupCharacters="@string/alternates_for_g" />
  94. <Key
  95. android:keyLabel="h" />
  96. <Key
  97. android:keyLabel="j" />
  98. <Key
  99. android:keyLabel="k" />
  100. <Key
  101. android:keyLabel="l"
  102. android:popupKeyboard="@xml/kbd_popup_template"
  103. android:popupCharacters="@string/alternates_for_l"
  104. android:keyEdgeFlags="right" />
  105. </Row>
  106. <Row>
  107. <Key
  108. android:codes="@integer/key_shift"
  109. android:keyIcon="@drawable/sym_keyboard_shift"
  110. android:iconPreview="@drawable/sym_keyboard_feedback_shift"
  111. android:keyWidth="15%p"
  112. android:isModifier="true"
  113. android:isSticky="true"
  114. android:keyEdgeFlags="left" />
  115. <Key
  116. android:keyLabel="z"
  117. android:popupKeyboard="@xml/kbd_popup_template"
  118. android:popupCharacters="@string/alternates_for_z" />
  119. <Key
  120. android:keyLabel="x" />
  121. <Key
  122. android:keyLabel="c"
  123. android:popupKeyboard="@xml/kbd_popup_template"
  124. android:popupCharacters="@string/alternates_for_c" />
  125. <Key
  126. android:keyLabel="v"
  127. android:popupKeyboard="@xml/kbd_popup_template"
  128. android:popupCharacters="@string/alternates_for_v" />
  129. <Key
  130. android:keyLabel="b" />
  131. <Key
  132. android:keyLabel="n"
  133. android:popupKeyboard="@xml/kbd_popup_template"
  134. android:popupCharacters="@string/alternates_for_n" />
  135. <Key
  136. android:keyLabel="m" />
  137. <Key
  138. android:codes="@integer/key_delete"
  139. android:keyIcon="@drawable/sym_keyboard_delete"
  140. android:iconPreview="@drawable/sym_keyboard_feedback_delete"
  141. android:keyWidth="15%p"
  142. android:isModifier="true"
  143. android:isRepeatable="true"
  144. android:keyEdgeFlags="right" />
  145. </Row>
  146. <Row
  147. android:keyboardMode="@+id/mode_normal_with_settings_key"
  148. android:rowEdgeFlags="bottom"
  149. >
  150. <Key
  151. android:codes="@integer/key_symbol"
  152. android:keyLabel="@string/label_symbol_key"
  153. android:keyWidth="15%p"
  154. android:isModifier="true"
  155. android:keyEdgeFlags="left" />
  156. <Key
  157. android:codes="@integer/key_settings"
  158. android:keyIcon="@drawable/sym_keyboard_settings"
  159. android:iconPreview="@drawable/sym_keyboard_feedback_settings"
  160. android:isModifier="true" />
  161. <Key
  162. android:codes="@integer/key_f1"
  163. android:isModifier="true" />
  164. <Key
  165. android:codes="@integer/key_space"
  166. android:keyIcon="@drawable/sym_keyboard_space"
  167. android:iconPreview="@drawable/sym_keyboard_feedback_space"
  168. android:keyWidth="30%p"
  169. android:isModifier="true" />
  170. <Key
  171. android:keyLabel="."
  172. android:keyIcon="@drawable/hint_popup"
  173. android:popupKeyboard="@xml/popup_punctuation"
  174. android:isModifier="true" />
  175. <Key
  176. android:codes="@integer/key_return"
  177. android:keyIcon="@drawable/sym_keyboard_return"
  178. android:iconPreview="@drawable/sym_keyboard_feedback_return"
  179. android:keyWidth="25%p"
  180. android:isModifier="true"
  181. android:keyEdgeFlags="right" />
  182. </Row>
  183. <Row
  184. android:keyboardMode="@+id/mode_url_with_settings_key"
  185. android:rowEdgeFlags="bottom"
  186. >
  187. <Key
  188. android:codes="@integer/key_symbol"
  189. android:keyLabel="@string/label_symbol_key"
  190. android:keyWidth="15%p"
  191. android:isModifier="true"
  192. android:keyEdgeFlags="left" />
  193. <Key
  194. android:codes="@integer/key_settings"
  195. android:keyIcon="@drawable/sym_keyboard_settings"
  196. android:iconPreview="@drawable/sym_keyboard_feedback_settings"
  197. android:isModifier="true" />
  198. <Key
  199. android:codes="@integer/key_f1"
  200. android:isModifier="true" />
  201. <Key
  202. android:codes="@integer/key_space"
  203. android:keyIcon="@drawable/sym_keyboard_space"
  204. android:iconPreview="@drawable/sym_keyboard_feedback_space"
  205. android:keyWidth="30%p"
  206. android:isModifier="true" />
  207. <Key
  208. android:keyLabel="."
  209. android:keyIcon="@drawable/hint_popup"
  210. android:popupKeyboard="@xml/popup_punctuation"
  211. android:isModifier="true" />
  212. <Key
  213. android:codes="@integer/key_return"
  214. android:keyIcon="@drawable/sym_keyboard_return"
  215. android:iconPreview="@drawable/sym_keyboard_feedback_return"
  216. android:keyWidth="25%p"
  217. android:isModifier="true"
  218. android:keyEdgeFlags="right" />
  219. </Row>
  220. <Row
  221. android:keyboardMode="@+id/mode_email_with_settings_key"
  222. android:rowEdgeFlags="bottom"
  223. >
  224. <Key
  225. android:codes="@integer/key_symbol"
  226. android:keyLabel="@string/label_symbol_key"
  227. android:keyWidth="15%p"
  228. android:isModifier="true"
  229. android:keyEdgeFlags="left" />
  230. <Key
  231. android:codes="@integer/key_settings"
  232. android:keyIcon="@drawable/sym_keyboard_settings"
  233. android:iconPreview="@drawable/sym_keyboard_feedback_settings"
  234. android:isModifier="true" />
  235. <Key
  236. android:codes="@integer/key_f1"
  237. android:isModifier="true" />
  238. <Key
  239. android:codes="@integer/key_space"
  240. android:keyIcon="@drawable/sym_keyboard_space"
  241. android:iconPreview="@drawable/sym_keyboard_feedback_space"
  242. android:keyWidth="30%p"
  243. android:isModifier="true" />
  244. <Key
  245. android:keyLabel="."
  246. android:keyIcon="@drawable/hint_popup"
  247. android:popupKeyboard="@xml/popup_punctuation"
  248. android:isModifier="true" />
  249. <Key
  250. android:codes="@integer/key_return"
  251. android:keyIcon="@drawable/sym_keyboard_return"
  252. android:iconPreview="@drawable/sym_keyboard_feedback_return"
  253. android:keyWidth="25%p"
  254. android:isModifier="true"
  255. android:keyEdgeFlags="right" />
  256. </Row>
  257. <Row
  258. android:keyboardMode="@+id/mode_im_with_settings_key"
  259. android:rowEdgeFlags="bottom"
  260. >
  261. <Key
  262. android:codes="@integer/key_symbol"
  263. android:keyLabel="@string/label_symbol_key"
  264. android:keyWidth="15%p"
  265. android:isModifier="true"
  266. android:keyEdgeFlags="left" />
  267. <Key
  268. android:codes="@integer/key_settings"
  269. android:keyIcon="@drawable/sym_keyboard_settings"
  270. android:iconPreview="@drawable/sym_keyboard_feedback_settings"
  271. android:isModifier="true" />
  272. <Key
  273. android:codes="@integer/key_f1"
  274. android:isModifier="true" />
  275. <Key
  276. android:codes="@integer/key_space"
  277. android:keyIcon="@drawable/sym_keyboard_space"
  278. android:iconPreview="@drawable/sym_keyboard_feedback_space"
  279. android:keyWidth="30%p"
  280. android:isModifier="true" />
  281. <Key
  282. android:keyLabel="."
  283. android:keyIcon="@drawable/hint_popup"
  284. android:popupKeyboard="@xml/popup_punctuation"
  285. android:isModifier="true" />
  286. <Key
  287. android:keyLabel=":-)"
  288. android:keyOutputText=":-) "
  289. android:keyIcon="@drawable/hint_popup"
  290. android:popupKeyboard="@xml/popup_smileys"
  291. android:keyWidth="25%p"
  292. android:isModifier="true"
  293. android:keyEdgeFlags="right" />
  294. </Row>
  295. <Row
  296. android:keyboardMode="@+id/mode_webentry_with_settings_key"
  297. android:rowEdgeFlags="bottom"
  298. >
  299. <Key
  300. android:codes="@integer/key_symbol"
  301. android:keyLabel="@string/label_symbol_key"
  302. android:keyWidth="15%p"
  303. android:isModifier="true"
  304. android:keyEdgeFlags="left" />
  305. <Key
  306. android:codes="@integer/key_settings"
  307. android:keyIcon="@drawable/sym_keyboard_settings"
  308. android:iconPreview="@drawable/sym_keyboard_feedback_settings"
  309. android:isModifier="true" />
  310. <Key
  311. android:codes="@integer/key_f1"
  312. android:isModifier="true" />
  313. <Key
  314. android:codes="@integer/key_space"
  315. android:keyIcon="@drawable/sym_keyboard_space"
  316. android:iconPreview="@drawable/sym_keyboard_feedback_space"
  317. android:keyWidth="30%p"
  318. android:isModifier="true" />
  319. <Key
  320. android:codes="@integer/key_tab"
  321. android:keyIcon="@drawable/sym_keyboard_tab"
  322. android:iconPreview="@drawable/sym_keyboard_feedback_tab"
  323. android:isModifier="true" />
  324. <Key
  325. android:keyLabel="."
  326. android:keyIcon="@drawable/hint_popup"
  327. android:popupKeyboard="@xml/popup_punctuation"
  328. android:isModifier="true" />
  329. <Key
  330. android:codes="@integer/key_return"
  331. android:keyIcon="@drawable/sym_keyboard_return"
  332. android:iconPreview="@drawable/sym_keyboard_feedback_return"
  333. android:keyWidth="15%p"
  334. android:isModifier="true"
  335. android:keyEdgeFlags="right" />
  336. </Row>
  337. </Keyboard>