public class

MultiPageDashboard

extends StandardDashboard
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.droidux.pack.action.widget.StandardDashboard
           ↳ com.droidux.pack.action.widget.MultiPageDashboard

Class Overview

A dashboard widget that can host more actions than the StandardDashboard widget. If the number of action items is more than dux_colums x dux_rows, a new page will be created to host the remaining actions. The total number of page will depends on the number of actions to be hosted by this widget.

Summary

XML Attributes
Attribute Name Related Method Description
dux_fadeDelay Specifies the delay before the page indicator is hidden when the dux_showIndicator attribute is set to autoHide
dux_fadeDuration Specifies the duration of the fade effect to hide/show the page indicator when the dux_showIndicator attribute is set to autoHide
dux_indicatorBulletDrawable Reference to a drawable resource to use for a bullet indicator when the dux_indicatorStyle attribute is set to bullet
dux_indicatorBulletSpacing Specifies the spacing between bullets. 
dux_indicatorHeight Specifies the height of the page indicator shown in a multipage dashboard/workspace. 
dux_indicatorHighlightColor If the dux_indicatorStyle is set to bar, this attribute specifies the color of the thumb. 
dux_indicatorLocation Controls where to show page indicator in a multipage dashboard/workspace. 
dux_indicatorNormalColor If the dux_indicatorStyle is set to bar, this attribute specifies the color of the track. 
dux_indicatorPadding Specifies the paddings of the page/workspace indicator. 
dux_indicatorStyle Specifies the style of the page indicator. 
dux_showIndicator Controls whether to show page indicator in a multipage dashboard/workspace. 
[Expand]
Inherited XML Attributes
From class com.droidux.pack.action.widget.StandardDashboard
[Expand]
Inherited Constants
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
MultiPageDashboard(Context context)
MultiPageDashboard(Context context, AttributeSet attrs)
[Expand]
Inherited Methods
From class com.droidux.pack.action.widget.StandardDashboard
From class android.widget.LinearLayout
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

XML Attributes

dux_fadeDelay

Since: API Level

Specifies the delay before the page indicator is hidden when the dux_showIndicator attribute is set to autoHide. The value is in milliseconds.

Related Methods

dux_fadeDuration

Since: API Level

Specifies the duration of the fade effect to hide/show the page indicator when the dux_showIndicator attribute is set to autoHide. The value is in milliseconds.

Related Methods

dux_indicatorBulletDrawable

Since: API Level

Reference to a drawable resource to use for a bullet indicator when the dux_indicatorStyle attribute is set to bullet. The drawable must be a TransitionDrawable with 2 layers. The first layer will be used when the associated page is not currently active, the other layer will be used when the associated page is active.

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

Related Methods

dux_indicatorBulletSpacing

Since: API Level

Specifies the spacing between bullets. Its value should be a dimension (such as "3dip").

Must be a dimension value, which is a floating point number appended with a unit such as "2.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

Related Methods

dux_indicatorHeight

Since: API Level

Specifies the height of the page indicator shown in a multipage dashboard/workspace. Its value may be a dimension (such as "2dip") for a constant width or one of the special constants.

May be a dimension value, which is a floating point number appended with a unit such as "1.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

May be one of the following constant values.

ConstantValueDescription
wrap_content-2 The height will be automatically determined, from the intrinsic width if the separator has intrinsic size, or from a default value (1dp).

Related Methods

dux_indicatorHighlightColor

Since: API Level

If the dux_indicatorStyle is set to bar, this attribute specifies the color of the thumb. If the dux_indicatorStyle is set to bullet and the dux_indicatorBulletDrawable is not set, this attribute specifies the color of the bullet when the associated page is currently active/displayed.

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Related Methods

dux_indicatorLocation

Since: API Level

Controls where to show page indicator in a multipage dashboard/workspace.

Must be one of the following constant values.

ConstantValueDescription
top0 Show the indicator on the top of the workspace.
bottom1 Show the indicator on the bottom of the workspace.

Related Methods

dux_indicatorNormalColor

Since: API Level

If the dux_indicatorStyle is set to bar, this attribute specifies the color of the track. If the dux_indicatorStyle is set to bullet and the dux_indicatorBulletDrawable is not set, this attribute specifies the color of the bullet when the associated page is not currently active/displayed.

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Related Methods

dux_indicatorPadding

Since: API Level

Specifies the paddings of the page/workspace indicator. Its value should be a dimension (such as "3dip").

Must be a dimension value, which is a floating point number appended with a unit such as "2.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

Related Methods

dux_indicatorStyle

Since: API Level

Specifies the style of the page indicator.

Must be one of the following constant values.

ConstantValueDescription
bar0 The page indicator will be displayed as a bar.
bullet1 The page indicator will be displayed as bullets.

Related Methods

dux_showIndicator

Since: API Level

Controls whether to show page indicator in a multipage dashboard/workspace.

Must be one of the following constant values.

ConstantValueDescription
none0 Don't show the page indicator.
always1 Always show the page indicator.
autoHide2 Show the page indicator, but automatically hide the indicator if there's no events occurred within certain time limit.

Related Methods

Public Constructors

public MultiPageDashboard (Context context)

Since: API Level 2.5

public MultiPageDashboard (Context context, AttributeSet attrs)

Since: API Level 2.5