/**
* 获取当前点击位置是否为et
*
* @param view
* 焦点所在View
* @param event
* 触摸事件
* @return
*/
public boolean isClickEt(View view, MotionEvent event) {
if (view != null && (view instanceof EditText)) {
int[] leftTop = { 0, 0 };
// 获取输入框当前的location位置
view.getLocationInWindow(leftTop);
int left = leftTop[0];
* 获取当前点击位置是否为et
*
* @param view
* 焦点所在View
* @param event
* 触摸事件
* @return
*/
public boolean isClickEt(View view, MotionEvent event) {
if (view != null && (view instanceof EditText)) {
int[] leftTop = { 0, 0 };
// 获取输入框当前的location位置
view.getLocationInWindow(leftTop);
int left = leftTop[0];