@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 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 eventExample :@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
,
SeekBarProgressChange
Copyright © 2010-2014. All Rights Reserved.