ACheckBox

ACheckBox

项目地址: Bigmercu/ACheckBox

Download

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

attrformat
stroke_widthdimension
color_beforecolor
color_aftercolor
check_textstring
check_stylefork/hook
show_borderboolean
is_circle_borderboolean

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值