Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/215.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 自定义软键盘,如何放置小写和大写字母?_Android_Keyboard_Uppercase_Lowercase - Fatal编程技术网

Android 自定义软键盘,如何放置小写和大写字母?

Android 自定义软键盘,如何放置小写和大写字母?,android,keyboard,uppercase,lowercase,Android,Keyboard,Uppercase,Lowercase,我需要为我的应用程序创建此键盘: 所以我实现了这个自定义键盘布局: <?xml version="1.0" encoding="utf-8"?> <Keyboard xmlns:android="http://schemas.android.com/apk/res/android" android:keyWidth="33%p" android:horizontalGap="0px" android:verticalGap="0px" android:keyHe

我需要为我的应用程序创建此键盘:

所以我实现了这个自定义键盘布局:

<?xml version="1.0" encoding="utf-8"?>
<Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
    android:keyWidth="33%p" android:horizontalGap="0px"
    android:verticalGap="0px" android:keyHeight="54dip">

    <Row>
        <Key android:codes="8" android:keyLabel="1" android:keyEdgeFlags="left" />
        <Key android:codes="9" android:keyLabel="2" />
        <Key android:codes="10" android:keyLabel="3" />
        <Key android:codes="75" android:keyLabel="°" android:keyEdgeFlags="right" />
    </Row>

    <Row>
        <Key android:codes="11" android:keyLabel="4" android:keyEdgeFlags="left" />
        <Key android:codes="12" android:keyLabel="5" />
        <Key android:codes="13" android:keyLabel="6" />
        <Key android:codes="39" android:keyLabel="'" android:keyEdgeFlags="right" />
    </Row>

    <Row>
        <Key android:codes="14" android:keyLabel="7" android:keyEdgeFlags="left" />
        <Key android:codes="15" android:keyLabel="8" />
        <Key android:codes="16" android:keyLabel="9" />
        <Key android:codes="97" android:keyLabel="&quot;" android:keyEdgeFlags="right" />
    </Row>

    <Row>
        <Key android:codes="34" android:keyLabel="," android:keyEdgeFlags="left" />
        <Key android:codes="7" android:keyLabel="0" />
        <Key android:codes="67" android:keyIcon="@drawable/sym_keyboard_delete"
            android:iconPreview="@drawable/sym_keyboard_delete" />|
        <Key android:codes="0x0008" android:keyLabel="-" android:keyEdgeFlags="right" />
    </Row>

</Keyboard>


你能解释一下你的确切意思吗?顺便说一下,这行keylab
不正确。对于ASCII码34,您有一个“字符,而不是这个,(这个是数字44)。我知道,我现在只想得到字符°,”和“现在(对我的应用程序有很多批评)