系統預設拉丁鍵盤佈局檔案位置:
packages/inputmethods/LatinIME/res/xml/skb_qwerty.xml
或拼音輸入法:
packages/inputmethods/PinyinIME/res/xml/skb_qwerty.xml
skb_qwerty.xml:鍵盤按鍵排列、鍵碼、彈出鍵定義KeyboardView 解析此 XML 渲染鍵盤skb_qwerty.xmlRow 中新增 Key 元素,設定 android:codes(Unicode 碼點)、android:keyLabel(顯示文字)android:horizontalGap、android:keyWidth 避免擠壓參考 SDK Sample SoftKeyboard,在 res/xml/qwerty.xml 定義佈局,打包為獨立 APP 發布,用戶可在設定中啟用。