1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (C) 2009 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <skb_template 17 skb_bg="@drawable/skb_bg" 18 key_xmargin="0%p" 19 key_ymargin="0%p" 20 balloon_bg="@drawable/key_balloon_bg" 21 popup_bg="@drawable/miniskb_bg" 22 color="@color/label_color" 23 color_highlight="@color/label_color" 24 color_balloon="@color/balloon_color"> 25 <!-- Normal key --> 26 <key_type 27 id="0" 28 bg="@drawable/normal_key_bg" 29 hlbg="@drawable/normal_key_hl_bg" 30 color_highlight="@color/label_color_hl0"/> 31 32 <!-- Function key --> 33 <key_type 34 id="1" 35 bg="@drawable/normal_key_bg" 36 hlbg="@drawable/normal_key_hl_bg"/> 37 38 <!-- Light key, light is off --> 39 <key_type 40 id="2" 41 bg="@drawable/light_key_bg" 42 hlbg="@drawable/light_key_hl_bg"/> 43 44 <!-- Light key, light is on --> 45 <key_type 46 id="3" 47 bg="@drawable/light_key_up_bg" 48 hlbg="@drawable/light_key_up_hl_bg"/> 49 50 <!-- key without background--> 51 <key_type 52 id="4"/> 53 54 <!-- Key with normal background but on-key high-light--> 55 <key_type 56 id="5" 57 bg="@drawable/normal_key_bg" 58 hlbg="@drawable/normal_key_hl_bg" 59 color_highlight="@color/label_color_hl0"/> 60 61 <!-- Default icons for enter key --> 62 <key_icon code="66" icon="@drawable/enter_icon" 63 icon_popup="@drawable/enter_popup_icon"/> 64 65 <!-- Default icons for space key --> 66 <key_icon code="62" icon="@drawable/space_icon" 67 icon_popup="@drawable/space_popup_icon"/> 68 69 <!-- Default icons for delete key --> 70 <key_icon code="67" icon="@drawable/delete_icon" 71 icon_popup="@drawable/delete_popup_icon"/> 72 73 <!-- Default key definition --> 74 <!-- Enter key for QWERTY-like keyboards.--> 75 <key id="1" start_pos_x="80%p" start_pos_y="75%p" 76 width="20%p" height="25%p" code="66" key_type="1"> 77 <toggle_state state_id="@string/toggle_enter_go" label="" code="66"/> 78 <toggle_state state_id="@string/toggle_enter_search" code="66" 79 icon="@drawable/search_icon" icon_popup="@drawable/search_popup_icon"/> 80 <toggle_state state_id="@string/toggle_enter_send" label="" code="66"/> 81 <toggle_state state_id="@string/toggle_enter_next" label="" code="66"/> 82 <toggle_state state_id="@string/toggle_enter_done" label="" code="66"/> 83 </key> 84 85 <!-- Enter key for phone keyboard.--> 86 <key id="2" start_pos_x="75%p" start_pos_y="75%p" 87 width="25%p" height="25%p" code="66" key_type="1" balloon="false"> 88 <toggle_state state_id="@string/toggle_enter_go" label="" code="66"/> 89 <toggle_state state_id="@string/toggle_enter_search" code="66" 90 icon="@drawable/search_icon" icon_popup="@drawable/search_popup_icon"/> 91 <toggle_state state_id="@string/toggle_enter_send" label="" code="66"/> 92 <toggle_state state_id="@string/toggle_enter_next" label="" code="66"/> 93 <toggle_state state_id="@string/toggle_enter_done" label="" code="66"/> 94 </key> 95 96 <!-- Delete key.--> 97 <key id="3" start_pos_x="85.715%p" start_pos_y="50%p" 98 width="14.286%p" height="25%p" code="67" key_type="1" 99 repeat="true"/> 100 101 <!-- Symbol-switching key (off-mode).--> 102 <key id="4" code="-3" start_pos_x="20%p" start_pos_y="75%p" 103 width="14.696%p" height="25%p" key_type="2" label="\?123"/> 104 105 <!-- Symbol-switching key (on-mode).--> 106 <key id="5" code="-3" start_pos_x="20%p" start_pos_y="75%p" 107 width="14.696%p" height="25%p" key_type="3" label="\?123"/> 108 109 <!-- Language-switching key. --> 110 <key id="6" start_pos_x="0%p" start_pos_y="75%p" 111 width="20%p" height="25%p" code="-2" label=" " key_type="1" 112 repeat="true"> 113 <toggle_state state_id="@string/toggle_en_lower" label=" " code="-2"/> 114 <toggle_state state_id="@string/toggle_en_upper" label=" " code="-2"/> 115 </key> 116 117 <!-- Period key(English mode). --> 118 <key id="7" start_pos_x="65.304%p" start_pos_y="75%p" 119 width="14.696%p" height="25%p" label="." key_type="0" 120 icon="@drawable/period_icon" icon_popup="@drawable/period_popup_icon"/> 121 122 </skb_template> 123 124