xmlns:ihtvpn="http://schemas.android.com/apk/res/com.ht.ui.widget"
改成
xmlns:ihtvpn="http://schemas.android.com/com.ht.ui.widget"试试?
改成
xmlns:ihtvpn="http://schemas.android.com/com.ht.ui.widget"试试?
解决方案 »
- 关于ListView的优化问题,大菜鸟编程过程中力不能及了,求各位大神指点,通宵在线等
- 切换Tab选项卡时重新启动activity的问题
- Android中如何调节传感器的灵敏度
- android客户端加载远程jsp页面。页面中select获得焦点后无法自动弹出下拉框
- PC上读取apk中的图片并且显示出来
- 有谁在公司上wifi 是需要安装证书实现的,那个证书所有人都是一样的吗
- 关于handler和broadcast的问题
- android物理9键盘实现字符切换?
- android 代码怎么实时拿到连接当前wifi热点的设备信息? 或者其它设备连接或是断开会有什么广播吗? 求大神指导!!!
- 求大神帮助添加一个登录功能,有偿
- 如何在android程序中的任意activity弹出对话框?
- 纠结..android有关http协议的问题..
<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr name="shelfLayerCenter" format="reference" />
</resources>
使用如下:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:attr="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
tools:context=".MainActivity" > <com.soso.xs.ui.view.View_BookShelfList
android:layout_width="fill_parent"
android:layout_height="fill_parent"
attr:shelfLayerCenter="@drawable/bookshelf_layer_center" /></RelativeLayout>请大神指导如何在自定义的view中取值,万分感谢谢!
联系邮箱[email protected]
我新建项目的时候加入命名的包为
com.sime.main
然后我新建了一个包用于存放自定的view
com.sime.custom
按照网上大多数人说的我引用的自定义空间
xmlns:cus="http://schemas.android.com/apk/res/com.sime.custom"
接着我在xml 使用我的自定义属性cus: 然后ctrl加/ xml上自动多了一个命名空间
xmlns:app="http://schemas.android.com/apk/res/com.sime.main"
cus:并没有提示我定义好的属性,最后我用了app:标签出来了
建议自定义view 包的命名最好在 com.sime.main.xxx 这样的包下面