EditText外层有scrollView,在EditText上下滑动,不会像正常情况那样上,只会滑动了scrollView,解决方法:
et_question.setOnTouchListener(new OnTouchListener() {
@Overridepublic boolean onTouch(View v, MotionEvent event) {
v.getParent().requestDisallowInterceptTouchEvent(true);
switch (event.getAction() & MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_UP:
v.getParent().requestDisallowInterceptTouchEvent(false);
break;
}
return false;
}
});