|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=CLASS) @Target(value=METHOD) public @interface SeekBarProgressChange
This annotation is intended to be used on methods to receive events defined
by
SeekBar.OnSeekBarChangeListener.onProgressChanged(android.widget.SeekBar, int, boolean)
when the progress level of a SeekBar has changed.
The annotation value should be one or several R.id.* fields that refers to an android.widget.SeekBar. If not set, the method name will be used as the R.id.* field name.
The method may have multiple parameter :
- A
SeekBarparameter to determine which view has targeted this event- An int parameter to get the progress level of the SeekBar
- A boolean parameter to determine if this event is triggered by the user
All these parameters are optional. Parameter names do not matter.
Some usage examples of @SeekBarProgressChange annotation:@ProgressChange(R.id.seekBar) void onProgressChangeOnSeekBar(SeekBar seekBar, int progress, boolean fromUser) { // Something Here } @ProgressChange(R.id.seekBar) void onProgressChangeOnSeekBar(SeekBar seekBar, int progress) { // Something Here }@ProgressChange({R.id.seekBar1, R.id.seekBar2}) void onProgressChangeOnSeekBar(SeekBar seekBar) { // Something Here }@ProgressChange({R.id.seekBar1, R.id.seekBar2}) void onProgressChangeOnSeekBar() { // Something Here }
SeekBarTouchStart,
SeekBarTouchStop| Optional Element Summary | |
|---|---|
String[] |
resName
|
int[] |
value
|
public abstract int[] value
public abstract String[] resName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||