Skip to content

Menu: Show & Dismiss Animation

SamLeung edited this page Nov 12, 2018 · 4 revisions

In this library, when building the menu with TimoMenu.Builder, you can specify the menu display and disappear animation call the following method:

setAnimation(Animation show, Animation dismiss)

And if you do not want to show any animations when the menu is showing or dismissing, you can call the below method:

setUseDefaultAnimation(boolean use)

If you don't specify an show animation and dismiss animation, tthe library will generate a default animation based on the menu location you set.

If the menu is at the bottom(It will rise from the bottom when it is displayed, and will drop at the bottom when it disappears.):

bottom

If the menu is at the center(It will gradually become larger when it is displayed, and will gradually become smaller when it disappears.):

center

If the menu is at the top(It drops from the top when it is displayed, and rises back to the top when it disappears.):

top

Clone this wiki locally