Since: API Level 2.5
public static interface

SlidingTab.OnTriggerListener

com.droidux.pack.commons.widget.SlidingTab.OnTriggerListener

Class Overview

Interface definition for a callback to be invoked when a tab is triggered by moving it beyond a threshold.

Summary

Constants
int LEFT_HANDLE The interface was triggered because the user grabbed the left handle and moved it past the threshold.
int NO_HANDLE The interface was triggered because the user let go of the handle without reaching the threshold.
int RIGHT_HANDLE The interface was triggered because the user grabbed the right handle and moved it past the threshold.
Public Methods
abstract void onGrabbedStateChange(View v, int grabbedState)
Called when the "grabbed state" changes (i.e.
abstract void onTrigger(View v, int whichHandle)
Called when the user moves a handle beyond the threshold.

Constants

public static final int LEFT_HANDLE

Since: API Level 2.5

The interface was triggered because the user grabbed the left handle and moved it past the threshold.

Constant Value: 1 (0x00000001)

public static final int NO_HANDLE

Since: API Level 2.5

The interface was triggered because the user let go of the handle without reaching the threshold.

Constant Value: 0 (0x00000000)

public static final int RIGHT_HANDLE

Since: API Level 2.5

The interface was triggered because the user grabbed the right handle and moved it past the threshold.

Constant Value: 2 (0x00000002)

Public Methods

public abstract void onGrabbedStateChange (View v, int grabbedState)

Since: API Level 2.5

Called when the "grabbed state" changes (i.e. when the user either grabs or releases one of the handles.)

Parameters
v the view that was triggered
grabbedState the new state: NO_HANDLE, LEFT_HANDLE, or RIGHT_HANDLE.

public abstract void onTrigger (View v, int whichHandle)

Since: API Level 2.5

Called when the user moves a handle beyond the threshold.

Parameters
v The view that was triggered.
whichHandle Which "dial handle" the user grabbed, either LEFT_HANDLE, RIGHT_HANDLE.