public class

ActionPathMenu.LinearLayoutBuilder

extends Object
java.lang.Object
   ↳ com.droidux.pack.action.widget.ActionPathMenu.LinearLayoutBuilder

Class Overview

The helper class to build a linear path menu.

Summary

Public Methods
ActionPathMenu.LinearLayoutBuilder addAction(ActionInterfaces.Item.ActionItem action)
Adds the action to the menu.
ActionPathMenu.LinearLayoutBuilder addActions(List<ActionInterfaces.Item.ActionItem> actions)
Adds a list of actions to the menu.
void endLayout()
This will end the layout process.
ActionPathMenu.LinearLayoutBuilder setAnimationDuration(int millis)
How long the animation to expand/collapse the menu should last.
ActionPathMenu.LinearLayoutBuilder setAnimationFactory(ActionPathMenu.AnimationFactory factory)
You can override the animations use by the menu, eg.
ActionPathMenu.LinearLayoutBuilder setLineParams(int tiltAngle, int spacing)
Customize the linear path.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public ActionPathMenu.LinearLayoutBuilder addAction (ActionInterfaces.Item.ActionItem action)

Since: API Level 2.5

Adds the action to the menu.

Parameters
action The action to be added.
Returns
  • this

public ActionPathMenu.LinearLayoutBuilder addActions (List<ActionInterfaces.Item.ActionItem> actions)

Since: API Level 2.5

Adds a list of actions to the menu.

Parameters
actions The action to be added.
Returns
  • this

public void endLayout ()

Since: API Level

This will end the layout process.

public ActionPathMenu.LinearLayoutBuilder setAnimationDuration (int millis)

Since: API Level 2.5

How long the animation to expand/collapse the menu should last. The duration cannot be negative.

Parameters
millis Duration in milliseconds.
Returns
  • this

public ActionPathMenu.LinearLayoutBuilder setAnimationFactory (ActionPathMenu.AnimationFactory factory)

Since: API Level 2.5

You can override the animations use by the menu, eg. expand/collapse animation, by providing an implementation of the ActionPathMenu.AnimationFactory.

Parameters
factory This will provide the animations to be used by the menu.
Returns
  • this

public ActionPathMenu.LinearLayoutBuilder setLineParams (int tiltAngle, int spacing)

Since: API Level 2.5

Customize the linear path.

Parameters
tiltAngle The linear path will be tilted with the specified angle in degrees.
spacing The distance between menu items, in pixels.
Returns
  • this