Since: API Level 2.5
public static interface

ActionPathMenu.AnimationFactory

com.droidux.pack.action.widget.ActionPathMenu.AnimationFactory

Class Overview

A factory class to provide various animation used by the ActionPathMenu widget.

Summary

Public Methods
abstract Animation newCollapseAnimation(int index, int fromXDelta, int toXDelta, int fromYDelta, int toYDelta, long duration)
Provide an Animation to be used when the menu is collapsing.
abstract Animation newControlIndicatorAnimation(boolean expanding, long duration)
Provide an Animation to be used when the menu's control view is pressed.
abstract Animation newExpandAnimation(int index, int fromXDelta, int toXDelta, int fromYDelta, int toYDelta, long duration)
Provide an Animation to be used when the menu is expanding.
abstract Animation newItemClickedAnimation(int index, boolean isClicked, long duration)
Provide an Animation to be used when the menu's item is clicked/pressed.

Public Methods

public abstract Animation newCollapseAnimation (int index, int fromXDelta, int toXDelta, int fromYDelta, int toYDelta, long duration)

Since: API Level 2.5

Provide an Animation to be used when the menu is collapsing.

Parameters
index The index of the item view.
fromXDelta Change in X coordinate to apply at the start of the animation.
toXDelta Change in X coordinate to apply at the end of the animation.
fromYDelta Change in Y coordinate to apply at the start of the animation.
toYDelta Change in Y coordinate to apply at the end of the animation.
duration The duration of the animation.
Returns

public abstract Animation newControlIndicatorAnimation (boolean expanding, long duration)

Since: API Level 2.5

Provide an Animation to be used when the menu's control view is pressed.

Parameters
expanding If true, the user has pressed to expand the menu. Otherwise, the user pressed to collapse the menu.
duration The duration of the animation.
Returns
  • Animation of the control to indicate the menu is expanded/collapsed.

public abstract Animation newExpandAnimation (int index, int fromXDelta, int toXDelta, int fromYDelta, int toYDelta, long duration)

Since: API Level 2.5

Provide an Animation to be used when the menu is expanding.

Parameters
index The index of the item view.
fromXDelta Change in X coordinate to apply at the start of the animation.
toXDelta Change in X coordinate to apply at the end of the animation.
fromYDelta Change in Y coordinate to apply at the start of the animation.
toYDelta Change in Y coordinate to apply at the end of the animation.
duration The duration of the animation.
Returns

public abstract Animation newItemClickedAnimation (int index, boolean isClicked, long duration)

Since: API Level 2.5

Provide an Animation to be used when the menu's item is clicked/pressed.

Parameters
index The index of the item view.
isClicked If true, this item is pressed. Use this parameter to provide different animations for the item views that is pressed and not.
duration The duration of the animation.
Returns
  • Animation of the menu's items when an item is clicked/pressed.