Code example for View.OnTouchListener

Methods: onTouch

0
					return true; 
				} 
			} 
		} 
		if (l != null) {
			return l.onTouch(v, event);
		} 
		return false; 
	} 
 
	@Override 
	public void onFocusChange(View v, boolean hasFocus) {
		if (hasFocus) {
			setClearIconVisible(isNotEmpty(getText()));
		} else { 
			setClearIconVisible(false); 
		} 
		if (f != null) {
			f.onFocusChange(v, hasFocus);
		} 
	}