GithubHelp home page GithubHelp logo

clippin's Introduction

Clippin

Build Status Software License Jitpack.io

Easily and flexibly applies the Reveal Effect. Reveal Effect is added animation from Android 5.0. So effect does not apply only in 5.0 and more device. However, you do not need to use the Build.VERSION.SDK_INT. Library switch the process depending on the API level at the time of execution.

Capture

Usage

It is possible to apply the Reveal Effect like ViewPropertyAnimaor.

View overlayView = ...;
View centerView = ...;
Clippin.animate().target(overlayView)
                 .center(centerView) // or #center(int)
                 .duration(400) // default is 500 milliseconds
                 .delay(10) // option
                 .interpolator(new AccelerateDecelerateInterpolator())  // option
                 .show(null);   // sets a call back if necessary

                 // or

                 .hide(null);

It is also possible to set the following constants in the #center(int) method.

  • CENTER_ORIGIN
  • CENTER_LEFT_TOP
  • CENTER_RIGHT_TOP
  • CENTER_LEFT_BOTTOM
  • CENTER_RIGHT_BOTTOM
  • CENTER_ORIGIN_BOTTOM

Download

Add the following code to module build.gradle.

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

dependencies {
    compile 'com.github.droibit:clippin:1.0.2'
}

Dependencies

  • Support Annotations v22.2.0

License

Apache Version 2.0

clippin's People

Contributors

droibit avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.