public class

ActionPathMenu

extends RelativeLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.RelativeLayout
         ↳ com.droidux.pack.action.widget.ActionPathMenu

Class Overview

An action menu that layouts its items along a circular or linear path. To add ActionInterfaces.Item.ActionItem to this menu, you need to start by calling, depending on which type of path you want to use, the beginXxxxxLayout(), eg. beginCircularLayout(int) } or beginLinearLayout(int) or their variants, and finish with the call to the corresponding endLayout() call.

Summary

Nested Classes
interface ActionPathMenu.AnimationFactory A factory class to provide various animation used by the ActionPathMenu widget. 
class ActionPathMenu.CircularLayoutBuilder The helper class to build a circular path menu. 
class ActionPathMenu.LinearLayoutBuilder The helper class to build a linear path menu. 
[Expand]
Inherited Constants
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ActionPathMenu(Context context)
ActionPathMenu(Context context, AttributeSet attrs)
ActionPathMenu(Context context, AttributeSet attrs, int defStyle)
Public Methods
ActionPathMenu.CircularLayoutBuilder beginCircularLayout(int controlLayoutRes, int indicatorViewId)
Prepare the widget to begin the layout process.
ActionPathMenu.CircularLayoutBuilder beginCircularLayout(View controlLayout, int indicatorViewId)
Prepare the widget to begin the layout process.
ActionPathMenu.CircularLayoutBuilder beginCircularLayout(int controlLayoutRes)
Prepare the widget to begin the layout process.
ActionPathMenu.CircularLayoutBuilder beginCircularLayout(View controlLayout)
Prepare the widget to begin the layout process.
ActionPathMenu.LinearLayoutBuilder beginLinearLayout(int controlLayoutRes, int indicatorViewId)
Prepare the widget to begin the layout process.
ActionPathMenu.LinearLayoutBuilder beginLinearLayout(View controlLayout)
Prepare the widget to begin the layout process.
ActionPathMenu.LinearLayoutBuilder beginLinearLayout(View controlLayout, int indicatorViewId)
Prepare the widget to begin the layout process.
ActionPathMenu.LinearLayoutBuilder beginLinearLayout(int controlLayoutRes)
Prepare the widget to begin the layout process.
[Expand]
Inherited Methods
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public ActionPathMenu (Context context)

Since: API Level 2.5

public ActionPathMenu (Context context, AttributeSet attrs)

Since: API Level 2.5

public ActionPathMenu (Context context, AttributeSet attrs, int defStyle)

Since: API Level 2.5

Public Methods

public ActionPathMenu.CircularLayoutBuilder beginCircularLayout (int controlLayoutRes, int indicatorViewId)

Since: API Level 2.5

Prepare the widget to begin the layout process. Complete the process by calling the corresponding endLayout() method.

Parameters
controlLayoutRes The resource id of the layout of the menu's control view. The control view is the view which the user press to expand/collapse the menu.
indicatorViewId The id of a view within the control view which will be animated when the menu is pressed to expand/collapse the menu. If the id is invalid, the whole controlLayout will be animated.
Returns
  • The helper class to build the layout.

public ActionPathMenu.CircularLayoutBuilder beginCircularLayout (View controlLayout, int indicatorViewId)

Since: API Level 2.5

Prepare the widget to begin the layout process. Complete the process by calling the corresponding endLayout() method.

Parameters
controlLayout The layout of the menu's control view. The control view is the view which the user press to expand/collapse the menu.
indicatorViewId The id of a view within the control view which will be animated when the menu is pressed to expand/collapse the menu. If the id is invalid, the whole controlLayout will be animated.
Returns
  • The helper class to build the layout.

public ActionPathMenu.CircularLayoutBuilder beginCircularLayout (int controlLayoutRes)

Since: API Level 2.5

Prepare the widget to begin the layout process. Complete the process by calling the corresponding endLayout() method.

Parameters
controlLayoutRes The resource id of the layout of the menu's control view. The control view is the view which the user press to expand/collapse the menu.
Returns
  • The helper class to build the layout.

public ActionPathMenu.CircularLayoutBuilder beginCircularLayout (View controlLayout)

Since: API Level 2.5

Prepare the widget to begin the layout process. Complete the process by calling the corresponding endLayout() method.

Parameters
controlLayout The layout of the menu's control view. The control view is the view which the user press to expand/collapse the menu.
Returns
  • The helper class to build the layout.

public ActionPathMenu.LinearLayoutBuilder beginLinearLayout (int controlLayoutRes, int indicatorViewId)

Since: API Level 2.5

Prepare the widget to begin the layout process. Complete the process by calling the corresponding endLayout() method.

Parameters
controlLayoutRes The resource id of the layout of the menu's control view. The control view is the view which the user press to expand/collapse the menu.
indicatorViewId The id of a view within the control view which will be animated when the menu is pressed to expand/collapse the menu. If the id is invalid, the whole controlLayout will be animated.
Returns
  • The helper class to build the layout.

public ActionPathMenu.LinearLayoutBuilder beginLinearLayout (View controlLayout)

Since: API Level 2.5

Prepare the widget to begin the layout process. Complete the process by calling the corresponding endLayout() method.

Parameters
controlLayout The layout of the menu's control view. The control view is the view which the user press to expand/collapse the menu.
Returns
  • The helper class to build the layout.

public ActionPathMenu.LinearLayoutBuilder beginLinearLayout (View controlLayout, int indicatorViewId)

Since: API Level 2.5

Prepare the widget to begin the layout process. Complete the process by calling the corresponding endLayout() method.

Parameters
controlLayout The layout of the menu's control view. The control view is the view which the user press to expand/collapse the menu.
indicatorViewId The id of a view within the control view which will be animated when the menu is pressed to expand/collapse the menu. If the id is invalid, the whole controlLayout will be animated.
Returns
  • The helper class to build the layout.

public ActionPathMenu.LinearLayoutBuilder beginLinearLayout (int controlLayoutRes)

Since: API Level 2.5

Prepare the widget to begin the layout process. Complete the process by calling the corresponding endLayout() method.

Parameters
controlLayoutRes The resource id of the layout of the menu's control view. The control view is the view which the user press to expand/collapse the menu.
Returns
  • The helper class to build the layout.