Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/210.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 使用键盘和;自定义UTF字符_Android_Utf 8_Emoji_Custom Keyboard - Fatal编程技术网

Android 使用键盘和;自定义UTF字符

Android 使用键盘和;自定义UTF字符,android,utf-8,emoji,custom-keyboard,Android,Utf 8,Emoji,Custom Keyboard,我正在使用KeyboardView制作一个软键盘,希望使用相对布局,这样我就可以拥有其他东西以及按键。我还想使用其他UTF字符,比如emojis。我用它作为如何使用键盘视图的参考 这是我的keyboard.xml文件。我怎样才能做到这一点?谢谢 <?xml version="1.0" encoding="utf-8"?> <Keyboard xmlns:android="http://schemas.android.com/apk/res/android" androi

我正在使用KeyboardView制作一个软键盘,希望使用相对布局,这样我就可以拥有其他东西以及按键。我还想使用其他UTF字符,比如emojis。我用它作为如何使用键盘视图的参考

这是我的keyboard.xml文件。我怎样才能做到这一点?谢谢

<?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">

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/act">

        <Key android:codes="12" android:keyLabel="5" />

    </RelativeLayout>


</Keyboard>