public class BaseActivity extends Activity {	public boolean isShouldHideKeyBoard(View v, MotionEvent event) {	// 如果获取焦点的View存在并且是EditText	if (v != null && (v instanceof EditText)) {	int[] leftTop = { 0, 0 };	// 获取输入框在屏幕中的位置	v.getLocationInWindow(leftTop);	int left = leftTop[0];	int top = leftTop[1];	int bottom = top + v.getHeight();	int right = left + v.getWidth();	// 判断点击区域是否在EditText内部,是则保留EditText的事件	if (event.getX() > left && event.getX()top && event.getY()