android自定义IME键盘服务

时间:2017-11-22 02:09:00

标签: android android-softkeyboard ime

下一个按钮移动到listview项目中的下一个edittext的键码是什么?目前我的下一个按钮相当于输入按钮键码。我将xml基于此教程网站:https://android.jlelse.eu/learn-to-create-a-system-keyboard-on-android-95aca21b1e5f

下面的

是当前的xml键盘布局:

<Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
    android:keyWidth="20%p"
    android:horizontalGap="0dp"
    android:verticalGap="0dp"
    android:keyHeight="60dp">

    <Row>
        <Key android:codes="49" android:keyLabel="1" android:keyEdgeFlags="left"/>
        <Key android:codes="50" android:keyLabel="2"/>
        <Key android:codes="51" android:keyLabel="3"/>
        <Key android:codes="-5"
            android:keyIcon="@drawable/backspace"
            android:keyWidth="40%p"
            android:keyEdgeFlags="right"
            android:isRepeatable="true"/>
    </Row>

    <Row>
        <Key android:codes="52" android:keyLabel="4" android:keyEdgeFlags="left"/>
        <Key android:codes="53" android:keyLabel="5" />
        <Key android:codes="54" android:keyLabel="6" android:keyEdgeFlags="right" />
    </Row>

    <Row>
        <Key android:codes="55" android:keyLabel="7" android:keyEdgeFlags="left"/>
        <Key android:codes="56" android:keyLabel="8"/>
        <Key android:codes="57" android:keyLabel="9" android:keyEdgeFlags="right"/>
    </Row>

    <Row>
        <Key android:codes="48" android:keyLabel="0" android:keyEdgeFlags="left" />
        <Key android:codes="46" android:keyLabel="."  />
        <Key android:codes="10"
            android:keyLabel="NEXT"
            android:keyWidth="60%p"
            android:keyEdgeFlags="right"/>
    </Row>

</Keyboard>

0 个答案:

没有答案