首頁  >  文章  >  web前端  >  Android切纸机风格的动画:Guillotine animation_html/css_WEB-ITnose

Android切纸机风格的动画:Guillotine animation_html/css_WEB-ITnose

WBOY
WBOY原創
2016-06-24 11:42:421351瀏覽

整洁的Android库,它提供一个简单的方法来实现切纸机风格的动画。

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 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.

    项目主页:http://www.open-open.com/lib/view/home/1434549096458

    陳述:
    本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn