Home  >  Article  >  Web Front-end  >  Android paper cutter style animation: Guillotine animation_html/css_WEB-ITnose

Android paper cutter style animation: Guillotine animation_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:42:421382browse

A neat Android library that provides a simple way to implement paper cutter style animations.

Usage

For a working implementation, have a look at the app module

  • Include the library as local library project.

  • Your hamburger on navigation menu must have exactly the same coordinates as hamburger on ActionBar.

  • In youronCreatemethod you need to config and build animation with GuillotineAnimation.GuillotineBuilder

  • new GuillotineAnimation.GuillotineBuilder(guillotineMenu, guillotineMenu.findViewById(R.id.guillotine_hamburger), contentHamburger)            .setActionBarViewForAnimation(toolbar)            .build();

    HeresetActionBarViewForAnimationmethod enables bounce effect of ActionBar at the end of the guillotine closing animation.

    Project homepage: http://www.open-open.com/lib/ view/home/1434549096458

    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn