declare-styleable中format的值
来源:互联网 发布:微信pk10源码授权码 编辑:程序博客网 时间:2024/05/01 16:59
参考:http://blog.csdn.net/mayingcai1987/article/details/6216655
Android中 declare-styleable format属性
1. reference:参考某一资源ID
<attr name = "background" format = "reference" />
2. color:颜色值
<attr name = "textColor" format = "color" />
3. boolean:布尔值
<attr name = "focusable" format = "boolean" />
4. dimension:尺寸值
<attr name = "layout_width" format = "dimension" />
5. float:浮点值
<attr name = "fromAlpha" format = "float" />
6. integer:整型值
<attr name = "framesCount" format="integer" />
7. string:字符串
<attr name = "apiKey" format = "string" />
8. fraction:百分数
<attr name = "pivotX" format = "fraction" />
9. enum:枚举值
<attr name="orientation">
<enum name="horizontal" value="0" />
<enum name="vertical" value="1" />
</attr>
10. flag:位或运算
<attr name="windowSoftInputMode">
<flag name = "stateUnspecified" value = "0" />
<flag name = "stateUnchanged" value = "1" />
<flag name = "stateHidden" value = "2" />
<flag name = "stateAlwaysHidden" value = "3" />
<flag name = "stateVisible" value = "4" />
<flag name = "stateAlwaysVisible" value = "5" />
<flag name = "adjustUnspecified" value = "0x00" />
<flag name = "adjustResize" value = "0x10" />
<flag name = "adjustPan" value = "0x20" />
<flag name = "adjustNothing" value = "0x30" />
</attr>
What's More:
属性定义时可以指定多种类型值。
<attr name = "background" format = "reference|color" />
- declare-styleable中format的值
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- declare-styleable中format详解
- Android 自定义 declare-styleable 的format
- 自定义控件的自定义的属性attrs.xml下的declare-styleable中format详解
- 自定义控件的自定义的属性attrs.xml下的declare-styleable中format详解
- 自定义控件View的属性 以及declare-styleable中format详解网址
- declare-styleable的使用,自定义属性值
- Ubuntu vim不能正常使用方向键和退格键
- Cwmp协议 使用
- 1-13-1 - 数组大折腾(输出加倍前后的数组元素)
- 我如何从186斤瘦到146斤之(三)
- BZOJ 2007 NOI 2010 海拔 平面图最小割->最短路SPFA+pq
- declare-styleable中format的值
- 第13周项目1-数组大折腾(4)
- 第十三周项目1-数组大折腾3 输出数组中特定数
- 用Maven创建web项目的具体步骤(试验过了,很详细)
- 第十三周OJ实践--数组逆序输出
- 百度音乐接口
- cocos2d-x 3.0开发笔记---物理引擎封装 Physics深入学习
- 【Android】ADB常用指令与logcat日志
- UI复习练习——防QQ的登录下拉列表