xml里的命名空间
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:diyview="http://schemas.android.com/apk/res/com.example.customview"
... >
<com.example.diyviewattribute.DiyView
...
<span style="font-family: Arial, Helvetica, sans-serif;">customview</span><span style="font-family: Arial, Helvetica, sans-serif;">:cv_color = "#ff0000ff" </span>
/>
<!-- 使用自定义的属性 代码 为 <span style="font-family: Arial, Helvetica, sans-serif;">customview</span><span style="font-family: Arial, Helvetica, sans-serif;">:cv_color = "#ff0000ff"</span><span style="font-family: Arial, Helvetica, sans-serif;"> --></span>
</RelativeLayout>
资源文件xml里的命名空间
最新推荐文章于 2016-08-17 17:40:15 发布