Animation CheckBox

Overview

AnimCheckBox

##Screenshot screenshot

###Inspired By Dribbble

##Import to your project ###Gradle Add it in your build.gradle at the end of repositories

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

Add the dependency in the form

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>

###Or Copy AnimCheckBox.java into your project.

##Usage ###In 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"/>

###In Java File

AnimCheckBox checkbox = (AnimCheckBox)findViewById(R.id.checkbox)
checkbox.setChecked(true);
boolean animation = true;
checkbox.setChecked(false, animation);

##关于我

##License

Copyright 2017 Liaoguipeng

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
An Android Animation library which easily add itemanimator to RecyclerView items.
An Android Animation library which easily add itemanimator to RecyclerView items.

RecyclerView Animators RecyclerView Animators is an Android library that allows developers to easily create RecyclerView with animations. Please feel

Android library for fluid tablayout animation as seen on Snapchat.
Android library for fluid tablayout animation as seen on Snapchat.

SnapTabLayout Show some ❤️ and star the repo to support the project This library is the implementation of TabLayout as seen on popular messaging app S

A little animation framework which could help you to show message in a nice looking way
A little animation framework which could help you to show message in a nice looking way

TextSurface A little animation framework which could help you to show message in a nice looking way. Usage Create TextSurface instance or add it in yo

An Android view for displaying repeated continuous side scrolling images. This can be used to create a parallax animation effect.
An Android view for displaying repeated continuous side scrolling images. This can be used to create a parallax animation effect.

Scrolling Image View An Android view for displaying repeated continuous side scrolling images. This can be used to create a parallax animation effect.

A loading animation based on Floating Action Button
A loading animation based on Floating Action Button

FAB-Loading A loading animation based on Floating Action Button. Usage Include the LoadingView widget in your view: io.saeid.fabloading.LoadingView

Neat library, that provides a simple way to implement guillotine-styled animation

Guillotine animation Neat library, that provides a simple way to implement guillotine-styled animation Check this [project on Dribbble] (https://dribb

A beautiful ripple animation for your app
A beautiful ripple animation for your app

Android Ripple Background A beautiful ripple animation for your app. You can easily change its color, speed of wave, one ripple or multiple ripples. S

A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android
A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android

android-flip Aphid FlipView is a UI component to accomplish the flipping animation like Flipboard does. A pre-built demo APK file for Android OS 2.2+

ArcAnimator helps to create arc transition animation: 2.3.+
ArcAnimator helps to create arc transition animation: 2.3.+

ArcAnimator ArcAnimator helps to create arc transition animation: 14+ | ArcAnimator Demo | TransitionLoop Demo* *TransitionLoop Prototype by Min-Sang

A CirclerTimer with Animation and Timer
A CirclerTimer with Animation and Timer

CircleTimer-Android A CirclerTimer with Animation and Timer Setup To use this library your minSdkVersion must be = 21. In your build.gradle : allproj

Intent sharing between activities of views with animation
Intent sharing between activities of views with animation

IntentSharingAnim Intent sharing between activities of views with animation This example basically includes : Intent sharing between activities of vie

[] Android library for using the Honeycomb animation API on all versions of the platform back to 1.0!

DEPRECATED NineOldAndroids is deprecated. No new development will be taking place. Existing versions will (of course) continue to function. New applic

BaseAnimation network Android animation set, custom controls, nearly 200 kinds of source code! BaseAnimation, if a new version is updated automatically to remind everyone, I hope everyone will contribute their animated XML files or other source, together to create this open source app! A motion-driven animation framework for Android.
A motion-driven animation framework for Android.

Backboard A motion-driven animation framework for Android. backboard is a framework on top of rebound that makes it easier to use by coupling it to vi

Android library to control Transition animates. A simple way to create a interactive animation.
Android library to control Transition animates. A simple way to create a interactive animation.

TransitionPlayer Android library to control Transition animates. A simple way to create a interactive animation. Demo1 SimpleTransition Code: ....

Collect android animation
Collect android animation

Interactive-animation 描述:收集android上开源的酷炫的交互动画和视觉效果。 1.交互篇 2.视觉篇 交互篇 1.SlidingUpPanelLayout 项目介绍:他的库提供了一种简单的方式来添加一个可拖动滑动面板(由谷歌音乐推广,谷歌地图和Rdio)你的Android应

Road Runner is a library for android which allow you to make your own loading animation using a SVG image
Road Runner is a library for android which allow you to make your own loading animation using a SVG image

Road Runner Road Runner is a library for android which allow you to make your own loading animation using a SVG image Sample video View in Youtube Dem

3D animation examples for support-v4 Fragment transition.
3D animation examples for support-v4 Fragment transition.

FragmentAnimations Animation examples for support.v4.Fragment transition. These animations do not depends on any external libraries. Usage Example In

Thirty-one different easing animation interpolators for Android.
Thirty-one different easing animation interpolators for Android.

EasingInterpolator Thirty-one different easing animation interpolators for Android. It does not use the standard 4 param ease signature. Instead it us

Comments
  • Different colours for stroke, circle and tick (check)

    Different colours for stroke, circle and tick (check)

    Hi, this is a nice library. There is a way to have separate colours for the component like a different stroke colour when unchecked, a fill colour when checked but then with a different colour for the check mark? At the moment, have only two colours.

    opened by saintjab 0
  • Circle is slightly trimmed from bottom

    Circle is slightly trimmed from bottom

    Hi I am using Xiaomi device running on 4.4.4 an I can see the circle slightly trimmed from the bottom. I have tried changing sizes and padding but no avail. Empty relative layout! Can someone help ?

    opened by sud007 2
  • Hi! Can anyone help with code?

    Hi! Can anyone help with code?

    Can you help me with implementing it to the ViewPager's Adapter. Here is code how I implemented basic CheckBox. RecyclerView with Multi items

    @Override
        public void onBindViewHolder(final ViewHolder viewHolder, final int position) {
            final int pos = position;
    
            viewHolder.chkSelected.setOnCheckedChangeListener(null);
            viewHolder.chkSelected.setChecked(genreList.get(position).isSelected());
            viewHolder.chkSelected.setTag(genreList.get(position));
            viewHolder.chkSelected.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    CheckBox cb = (CheckBox) v;
                    Genres gr = (Genres) cb.getTag();
                    tinyDB = new TinyDB(v.getContext());
    
                    if (cb.isChecked()) {
                        gr.setSelected(cb.isChecked());
                        genreList.get(pos).setSelected(cb.isChecked());
                        cgIntegerList.add(pos);
                    } else {
                        cgIntegerList.remove(Integer.valueOf(pos));
                    }
                }
            });
    
        }
    

    Btw, nice CB! It looks awesome!

    opened by iRYO400 1
Releases(1.0.1)
Owner
lguipeng
lguipeng
Jetpack Compose animations including Loading/progress, Looping, On-off, Enter, Exit, Fade, Spin and Background animation

Compose Animation Examples. Useful Jetpack Compose animations including Loading/progress, Looping, On-off, Enter, Exit, Fade, Spin and Background animations that you can take inspiration from.

Mutual Mobile 149 Dec 22, 2022
Row Coloumn Box Compose Constraint Layout Modifier.xyz Animator Tween animation MutableState Creating custom composable Corners Canvas LaunchedEffect

Row Coloumn Box Compose Constraint Layout Modifier.xyz Animator Tween animation MutableState Creating custom composable Corners Canvas LaunchedEffect

Shivaraj M Patil 1 Apr 13, 2022
Clone of a onboarding screen📱animation originally created by @cuberto.

BubblePager Here I tried to clone an onboarding screen animation using Jetpack Compose. Download the apk file from the release page and try it yoursel

Vivek Singh 200 Dec 30, 2022
🚀📱💖Animated LazyColumn/Row changes scale/color with animation and have a current selected item like a Pager. An elegant alternative for selecting from a list

Compose AnimatedList Animated infinite and finite LazyRow and LazyColumn with scale and color animations on scroll change based on how far they are to

Smart Tool Factory 47 Nov 16, 2022
Based on LinearProgressIndicator, support thumb and progress animation

compose-progressIndicator This Library is designed to improve the LinearProgressIndicator provided by Jetpack Compose. Beside the base functionality p

null 2 Oct 20, 2022
Android Animation Easing Functions. Let's make animation more real!

Android Easing Functions This project is originally from my another project, AndroidViewAnimation, which is an animation collection, to help you make

代码家 2.5k Jan 4, 2023
A light weight Compose Animation library to choreograph low level Animation API through Kotlin DSL.

Koreography Choreograph your Compose Animation ?? ?? A lightweight Compose Animation utility library to choreograph low-level Animation API (https://d

Sagar Viradiya 107 Jan 8, 2023
Cute view animation collection.

Android View Animations One day, I saw an iOS library, which is a view shaker, it's very beautiful. I think Android also need one, and should be bette

代码家 12.2k Jan 1, 2023
a custom pull-to-refresh layout which contains a interesting animation

This is a project with custom pull-to-refresh layout which contains a interesting animation. And the animation is inspired by https://dribbble.com/sho

ZhangLei 1.8k Dec 27, 2022
Android drawer icon with material design animation

LDrawer Android drawer icon with material design animation Note Basically same as appcompat_v7 version 21, you can use appcompat_v7 compile 'com.andro

Hasan Keklik 1.4k Dec 25, 2022