Fla*_*ake 6 xml android custom-attributes
有人可以请帮助我如何定义类型"字符串数组"的自定义属性,因为我找不到格式来定义数组.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="MyCustomWidget">
<attr name="myarray" format="string-array"/>
</declare-styleable>
</resources>
Run Code Online (Sandbox Code Playgroud)
这段代码似乎不起作用.什么应该是我的"格式"?
而不是使用
format="string-array"
Run Code Online (Sandbox Code Playgroud)
我用了
format="reference"
Run Code Online (Sandbox Code Playgroud)
并将其称为字符串数组资源.
归档时间: |
|
查看次数: |
2347 次 |
最近记录: |