Android 如何解决Android的库自定义属性和生成过程中的包名重映射?

来源:互联网 发布:搜索算法工程师 编辑:程序博客网 时间:2024/05/18 13:05

解决方法:

    <com.itheima.mobilesafe74.view.SettingItemView        xmlns:mobilesafe="http://schemas.android.com/apk/res-auto"  <-- 或者在此行""里输入任何你想输入的东西比如"hello",和包名相同居然报错??-->        android:id="@+id/siv_update"        android:layout_width="match_parent"        android:layout_height="wrap_content"        mobilesafe:desoff="自动更新已关闭"        mobilesafe:deson="自动更新已开启"        mobilesafe:destitle="自动更新设置" />


原创粉丝点击