I wrote a solution for it, it's working perfect but i think that is not the best solution...
private volatile boolean sweepEvent;
@Override
public boolean onTouchEvent(MotionEvent event) {
if (MotionEvent.ACTION_UP == event.getAction() && !sweepEvent) {
sweepEvent = false;
((View) this.getParent()).performClick();
return false;
} else if (MotionEvent.ACTION_MOVE == event.getAction()) {
sweepEvent = true;
} else {
sweepEvent = false;
}
return super.onTouchEvent(event);
}
As you can see i also need call parent view (LinearLayout) when user tapping on seekbar but not moving progress. line : ((View) this.getParent()).performClick(); but its not working at all ...
I am thinking to add a new listener for a callback but iti s not a good solution ...