/ime/latinime/res/xml/kbd_dpad_keys.xml

http://eyes-free.googlecode.com/ · XML · 89 lines · 70 code · 1 blank · 18 comment · 0 complexity · 22dd8a59068d94d6fad23a54256b6309 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /*
  4. **
  5. ** Copyright 2011, 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="100%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:codes="@integer/key_back"
  32. android:keyIcon="@drawable/sym_dpad_back"
  33. android:keyWidth="15%p"
  34. android:keyEdgeFlags="left"
  35. android:isModifier="true" />
  36. <Key
  37. android:codes="@integer/key_dpad_up"
  38. android:keyLabel="up"
  39. android:horizontalGap="25%p"
  40. android:keyWidth="20%p" />
  41. <Key
  42. android:codes="@integer/key_home"
  43. android:keyIcon="@drawable/sym_dpad_home"
  44. android:horizontalGap="25%p"
  45. android:keyWidth="15%p"
  46. android:keyEdgeFlags="right"
  47. android:isModifier="true" />
  48. </Row>
  49. <Row>
  50. <Key
  51. android:codes="@integer/key_dpad_left"
  52. android:keyLabel="left"
  53. android:horizontalGap="20%p"
  54. android:keyWidth="20%p" />
  55. <Key
  56. android:codes="@integer/key_dpad_center"
  57. android:keyLabel="center"
  58. android:keyWidth="20%p" />
  59. <Key
  60. android:codes="@integer/key_dpad_right"
  61. android:keyLabel="right"
  62. android:keyWidth="20%p" />
  63. </Row>
  64. <Row>
  65. <Key
  66. android:codes="@integer/key_dpad_down"
  67. android:keyLabel="down"
  68. android:horizontalGap="40%p"
  69. android:keyWidth="20%p" />
  70. </Row>
  71. <Row
  72. android:rowEdgeFlags="bottom"
  73. >
  74. <Key
  75. android:codes="@integer/key_menu"
  76. android:keyIcon="@drawable/sym_dpad_menu"
  77. android:keyWidth="15%p"
  78. android:keyEdgeFlags="left"
  79. android:isModifier="true" />
  80. <Key
  81. android:codes="@integer/key_search"
  82. android:keyIcon="@drawable/sym_dpad_search"
  83. android:horizontalGap="70%p"
  84. android:keyWidth="15%p"
  85. android:keyEdgeFlags="right"
  86. android:isModifier="true" />
  87. </Row>
  88. </Keyboard>