阅读背景:

自定义控件1_切换按钮

来源:互联网 

1.自定义属性values/attrs.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <declare-styleable name="ToggleView">
        <attr name="switch_background" format="reference" />
        <attr name="slide_button" format="reference" />
        <attr name="switch_state" format="boolean" />
    </declare-styleable>

</resources><?xml version="1.0



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: