模仿Ios 开关

时间:2021-06-16 18:11:09
【文件属性】:
文件名称:模仿Ios 开关
文件大小:795KB
文件格式:ZIP
更新时间:2021-06-16 18:11:09
模仿ios开关 模仿ios开关 __kswThumbDrawable__: drawable for thumb * __kswThumbColor__: color for thumb * __kswThumbMargin__: margin from thumb to back, can be negative. maybe cover by single direction margins * __kswThumbMarginTop__: same to __kswThumbMargin__, just top * __kswThumbMarginBottom__: same to __kswThumbMargin__, just bottom * __kswThumbMarginLeft__: same to __kswThumbMargin__, just left * __kswThumbMarginRight__: same to __kswThumbMargin__, just right * __kswThumbWidth__: width of thumb * __kswThumbHeight__: height of thumb * __kswThumbRadius__: radius of thumb rect, only work with __kswThumbColor__ * __kswBackRadius__: radius of background rect, only work with __kswBackColor__ * __kswBackDrawable__: drawable for background * __kswBackColor__: color for background * __kswFadeBack__: fade background color/drawable when drag or animate between on/off status or not * __kswBackMeasureRatio__: decide width of background from thumb's, this is the ratio * __kswAnimationDuration__: duration of animation between 2 status * __kswTintColor__: change SwitchButton's style just by __one__ property, all relevant color will be generate automatically.
【文件预览】:
SwitchButton-master
----.gitignore(294B)
----CHANGELOG.md(5KB)
----README.md(4KB)
----demo()
--------switchbutton_demo_131.apk(691KB)
----preview()
--------demo_131.jpg(340KB)
----SwitchButton()
--------.gitignore(81B)
--------settings.gradle(28B)
--------build.gradle(573B)
--------library()
--------gradlew(5KB)
--------SwitchButton.iml(943B)
--------gradlew.bat(2KB)
--------demo()
--------.idea()
--------gradle()

网友评论