TouchEvent executing both if and else part
问题 In the code below the problem i m facing is that in onTouchListener method both if and else part is getting executed each time. Anyone have idea why is it happening like that? and aim of my project is on touch event on anywhere in on the webview the dock layout must appear on another touch it must disappear.Can anyone help regarding this? Thanks in advance .. public class MathiasdockActivity extends Activity { /** Called when the activity is first created. */ RelativeLayout upperdock,parent;