Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/191.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_Xml - Fatal编程技术网

Android 表情符号不受约束

Android 表情符号不受约束,android,xml,Android,Xml,我正在我的android项目中实现emojicon库,但当我尝试使用它时,会出现以下错误: 命名空间emojicon未绑定 以下是我正在使用的xml: <com.rockerhieu.emojicon.EmojiconTextView android:id="@+id/txtEmojicon" android:text="I \ue32d emojicon" android:layout_width="match_parent" android:la

我正在我的android项目中实现emojicon库,但当我尝试使用它时,会出现以下错误:

命名空间emojicon未绑定

以下是我正在使用的xml:

    <com.rockerhieu.emojicon.EmojiconTextView
    android:id="@+id/txtEmojicon"
    android:text="I \ue32d emojicon"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>

<com.rockerhieu.emojicon.EmojiconEditText
    android:id="@+id/editEmojicon"
    android:text="I \ue32d emojicon"
    emojicon:emojiconSize="28sp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>
<fragment
    android:id="@+id/emojicons"
    android:layout_width="match_parent"
    android:layout_height="220dp"
    class="com.rockerhieu.emojicon.EmojiconsFragment"/>


请帮忙

您需要将此命名空间添加到布局中:

xmlns:emojicon="http://schemas.android.com/apk/res-auto"

参考:Emojicon示例代码给定

实际上
xmlns:Emojicon
指的是什么?我的意思是,这是指自定义的还是来自android的?@eRaisedToX:
xmlns:
是XML中的名称空间声明。更多信息