با استفاده از این کتابخانه شما میتوانید ckeckBox هایی دارای حالت انیمیشن را به برنامه خود اضافه کنید
build.gradle
repositories {
// ...
maven { url "https://jitpack.io" }
}
dependency
dependencies {
compile 'com.github.lguipeng:AnimCheckBox:1.0.1'
}
**Maven**
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.lguipeng</groupId>
<artifactId>AnimCheckBox</artifactId>
<version>1.0.1</version>
</dependency>
Layout File
<com.github.lguipeng.library.animcheckbox.AnimCheckBox
android:layout_gravity="center_horizontal"
android:layout_width="80dp"
android:padding="4dp"
android:layout_height="wrap_content"
app:stroke_width="4dp"
app:stroke_color="#2196F3"
app:circle_color="#1976D2"
app:checked="true"/>
Java File
AnimCheckBox checkbox = (AnimCheckBox)findViewById(R.id.checkbox)
checkbox.setChecked(true);
boolean animation = true;
checkbox.setChecked(false, animation);
support AnimCheckBox
AnimCheckBox-master.zip