Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.
/ CheckView Public archive

An animated toggling Plus/Check button for Android

License

Notifications You must be signed in to change notification settings

aballano/CheckView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check View Android Arsenal

Sample

Usage

Add a CheckView to your layout

    <com.zdvdev.checkview.CheckView
        android:id="@+id/checkView"
        android:layout_width="48dp"
        android:layout_height="48dp"
        app:cvlineColor="#ff00" />

// Note that you can define the color with lineColor

Toggle is done automatically by default, if you want to change that, just:

    checkView.setAutoToggle(false);

or by xml:

    app:cvautoToggle="false"

You can also set a state directly:

    checkView.plus();
    checkView.check();

Extra

Optionally supply an animation duration in milliseconds:

    checkView.check(0L);
    checkView.toggle(150L);
    checkView.plus(200L);

Or pass a custom stroke width:

    app:cvstrokeWidth="8dp"

Download

Easy as:

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.Shyish:CheckView:1.X.X'
}

Based on

CrossView from Collin Flynn (cdflynn)

About

An animated toggling Plus/Check button for Android

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages