ACheckBox
来源:互联网 发布:淘宝11.11抢拍技巧 编辑:程序博客网 时间:2024/04/27 18:01
ACheckBox
项目地址:Bigmercu/ACheckBox
This is a simple CheckBox for Android with cool animation.
Import to your project
Gradle
compile 'com.bigmercu.cBox:cbox:1.08'
Maven
in build.gradle of your project
allprojects { repositories { jcenter() maven { url 'https://dl.bintray.com/bigmercu/maven/' } }}...
in build.gradle of your Module
dependencies { ... compile 'com.bigmercu.cBox:cbox:1.08'}
Attrs
Usage
In Layout File
<com.bigmercu.cBox.CheckBox android:padding="5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" app:check_text="算法" app:show_border="true" app:color_after="@color/colorAccent" app:color_before="@color/colorPrimary" app:check_style="hook" app:is_circle_border="true"/>
In Java File
mCheckBox.setChecked(boolean); mCheckBox.setOnCheckedChangeListener(new CheckBox..OnCheckedChangeListener() { @Override public void onChange(boolean checked) { } }); mCheckBox.isChecked()
screenShot
0 0