public static interface SlidingTab.OnTriggerListener
Modifier and Type | Field and Description |
---|---|
static int |
LEFT_HANDLE
The interface was triggered because the user grabbed the left handle and moved it past
the threshold.
|
static int |
NO_HANDLE
The interface was triggered because the user let go of the handle without reaching the
threshold.
|
static int |
RIGHT_HANDLE
The interface was triggered because the user grabbed the right handle and moved it past
the threshold.
|
Modifier and Type | Method and Description |
---|---|
void |
onGrabbedStateChange(View v,
int grabbedState)
Called when the "grabbed state" changes (i.e. when the user either grabs or releases
one of the handles.)
|
void |
onTrigger(View v,
int whichHandle)
Called when the user moves a handle beyond the threshold.
|
static final int NO_HANDLE
static final int LEFT_HANDLE
static final int RIGHT_HANDLE
void onTrigger(View v, int whichHandle)
v
- The view that was triggered.whichHandle
- Which "dial handle" the user grabbed,
either LEFT_HANDLE
, RIGHT_HANDLE
.void onGrabbedStateChange(View v, int grabbedState)
v
- the view that was triggeredgrabbedState
- the new state: NO_HANDLE
, LEFT_HANDLE
,
or RIGHT_HANDLE
.