为什么我可以输入到一个残疾的EditText? [英] Why can I type into a disabled EditText?

查看:125
本文介绍了为什么我可以输入到一个残疾的EditText?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我禁止使用的EditText 控件

editText.setEnabled(false);

我可以使用屏幕上的输入方法(在仿真器和在G1上)还是输入到它。这是意?我怎样才能解决这个问题?

I can still type into it using the on-screen input method (in both the emulator and on the G1). Is this intended? How can I workaround this issue?

推荐答案

我注意到,你无法通过敲击一个残疾的EditText激活屏幕上的键盘,并且还DEL键不起作用,所以这看起来喜欢我的错误。我在Android的问题跟踪提交其作为问题2771

I notice that you can't activate the on-screen keyboard by tapping on a disabled EditText, and also the DEL key doesn't work, so this looks like a bug to me. I filed it as issue 2771 in the Android issue tracker.

这篇关于为什么我可以输入到一个残疾的EditText?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆