您的位置:首页 > 移动开发 > Android开发

android中的EditText怎么屏蔽软键盘以及在屏蔽软键盘弹出其它对像

2017-06-22 16:06 316 查看
final EditText begintime=(EditText)view.findViewById(R.id.livebegintime);

begintime.setInputType(InputType.TYPE_NULL);

begintime.setOnClickListener(new OnClickListener() {

}

转自:http://www.reader8.cn/jiaocheng/20120910/1383771.html


补充:如果edittext需要点两次才能触发,Onclick事件 则在xml中添加:android:focusableInTouchMode="false"


xml代码:
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:id="@+id/livebegintime"
android:focusableInTouchMode="false"/>


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: