EditText获取焦点不弹出键盘


editText.setOnTouchListener(new OnTouchListener() { 
	public boolean onTouch(View v, MotionEvent event) {  
		int inType = editText.getInputType(); // backup the input type  
		editText.setInputType(InputType.TYPE_NULL); // disable soft input      
		editText.onTouchEvent(event); // call native handler      
		editText.setInputType(inType); // restore input type     
		return true;                      
	}  
});  

猜你喜欢

转载自zheyiw.iteye.com/blog/2108111
今日推荐