@Retention(value=CLASS) @Target(value=METHOD) public @interface SeekBarTouchStart
This annotation is intended to be used on methods to receive events defined
by
SeekBar.OnSeekBarChangeListener#onStartTrackingTouch(SeekBar) when the user
begins to move the cursor of the targeted SeekBar.
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 one parameter :
SeekBar parameter to determine which
view has targeted this event
Example :
@SeekBarTouchStart(R.id.seekBar)
void onProgressStartOnSeekBar(SeekBar seekBar) {
// Something Here
}
@SeekBarTouchStart(R.id.seekBar)
void onProgressStartOnSeekBar() {
// Something Here
}
@SeekBarTouchStart({R.id.seekBar1, R.id.seekBar2})
void onProgressStartOnSeekBar(SeekBar seekBar) {
// Something Here
}
@SeekBarTouchStart({R.id.seekBar1, R.id.seekBar2})
void onProgressStartOnSeekBar() {
// Something Here
}
SeekBarTouchStop,
SeekBarProgressChangepublic abstract int[] value
public abstract String[] resName
Copyright © 2010-2015. All Rights Reserved.