view自定义属性使用and more

时间:2018-06-03 17:04:23
【文件属性】:
文件名称:view自定义属性使用and more
文件大小:2.01MB
文件格式:ZIP
更新时间:2018-06-03 17:04:23
styleable blog原文:http://blog.csdn.net/qiaoidea/article/details/45599593 1. declare-styleable 在res/values目录下新建xml文件 自定义你的属性 2. AttributeSet和TypedArray 在view中获取这些属性对应的值,设置绑定到view上 3. xmlns申明与引用 在你要使用的地方引入命名空间并使用这些属性,赋值
【文件预览】:
StyleableDemo
----bin()
--------classes.dex(1.07MB)
--------res()
--------jarlist.cache(120B)
--------dexedLibs()
--------classes()
--------resources.ap_(14KB)
--------AndroidManifest.xml(864B)
--------StyleableDemo.apk(383KB)
----res()
--------drawable-hdpi()
--------drawable-xhdpi()
--------drawable()
--------values()
--------layout()
----proguard-project.txt(781B)
----ic_launcher-web.png(3KB)
----assets()
----gen()
--------com()
----.settings()
--------org.eclipse.jdt.core.prefs(173B)
----src()
--------com()
----.project(816B)
----.classpath(466B)
----project.properties(607B)
----AndroidManifest.xml(864B)
----libs()
--------android-support-v4.jar(1.02MB)

网友评论