【发布时间】:2015-09-30 23:04:45
【问题描述】:
我有一个 EditText 和一个 Button 。
当你按下 EditText 时,我不想显示 keyboard ,当你按下 Button 时,我想在 EditText 上输入一个数字 1。
观察
我要cursor 不消失。
![ When you press the 1 1 writes When you press the Del licked Can be controlled in the text Without the appearance of the keyboard ]1
【问题讨论】:
-
强制隐藏键盘,添加onclicklistener并做myTextView.setText("1");
-
或者您可以将 EditText 属性设置为可编辑为 false,这样它将阻止任何用户交互。
标签: android android-layout android-edittext android-button