Android自定义属性中提示命名空间错误,帮本人看看咋回事

Android 码拜 8年前 (2016-05-09) 1054次浏览
<?xml version=”1.0″ encoding=”utf-8″?>
<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android”
android:orientation=”vertical” android:layout_width=”match_parent”
android:layout_height=”match_parent”>
<TextView
android:text=”设置中心”
style=”@style/TitleStye”/>
<android.ye.mobileguard.View.SetItemView
xmlns:mobileguard=”http://schemas.android.com/apk/res/android.ye.mobileguard”
android:id=”@+id/set_update”
android:layout_width=”match_parent”
android:layout_height=”wrap_content”
mobileguard:destitle=”xxxxxx”
mobileguard:desoff=”xxxxxx”
mobileguard:deson=”xxxxx”

//提示unexcepted namespace prefix
>
</android.ye.mobileguard.View.SetItemView>
这个mobileguard命名怎么用不了,提示本人用Android:,,本人看拼写也没错,clean了也不行,重新开启AS也不行。本人这哪出问题了
解决方案

40

xmlns:mobileguard=”http://schemas.android.com/apk/res-auto”改成这个试试

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明Android自定义属性中提示命名空间错误,帮本人看看咋回事
喜欢 (0)
[1034331897@qq.com]
分享 (0)