org.androidannotations.annotations
Annotation Type SeekBarProgressChange
@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
SeekBar
parameter 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 was triggered
by the user
All these parameters are optional. Parameter names do not matter.
Example :
@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
}
- Since:
- 2.7
- See Also:
SeekBarTouchStart
,
SeekBarTouchStop
value
public abstract int[] value
- Default:
- -1
resName
public abstract String[] resName
- Default:
- ""
Copyright © 2010-2014. All Rights Reserved.