public static interface RotarySelector.OnDialTriggerListener
Modifier and Type | Field and Description |
---|---|
static int |
LEFT_HANDLE
The dial was triggered because the user grabbed the left handle,
and rotated the dial clockwise.
|
static int |
RIGHT_HANDLE
The dial was triggered because the user grabbed the right handle,
and rotated the dial counterclockwise.
|
Modifier and Type | Method and Description |
---|---|
void |
onDialTrigger(View v,
int whichHandle)
Called when the dial is triggered.
|
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.)
|
static final int LEFT_HANDLE
static final int RIGHT_HANDLE
void onDialTrigger(View v, int whichHandle)
v
- The view that was triggeredwhichHandle
- 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: either RotarySelector.NOTHING_GRABBED
,
RotarySelector.LEFT_HANDLE_GRABBED
, or RotarySelector.RIGHT_HANDLE_GRABBED
.