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"试试?
解决方案 »
- ExpandableListActivity 子项可不可以每项的高度都不一样
- 如何监控Android手机上的http请求
- 如何从array.xml获取一个数组???
- android开发PDF资源分享,有需要的猿猴们,快进来!
- 关于Android的Ethernet状态广播(android.net.ethernet.ETHERNET_STATE_CHANGED)
- android自定义控件及特效资料
- TabActivity问题请教
- 对onNewIntent使用上的问题,求赐教谢谢!
- IO操作 ion 时,提示 not a typewriter
- 想查一下 android API 或 java 的一些语法,有什么好的方法
- 如何在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 这样的包下面