我想单击我的微调器并采取与单击任何按钮类似的操作,但是在微调器单击时始终显示一个对话框,我的代码是:
final View.OnTouchListener sp = new View.OnTouchListener() {
public boolean onTouch1(View v, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_UP) {
list(); //function to call
}
return true;
}
@Override
public boolean onTouch(View arg0, MotionEvent arg1) {
// TODO Auto-generated method stub
list(); /function to call
return true;
}
};