Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个不可编辑的EditTextand Spinner,它在页面加载后显示它们的默认值。然后我想在用户单击按钮后启用EditText并可以编辑。Spinner任何帮助都提前感谢 Thanx :)
EditText
Spinner
使用方法:
editText.setEnabled(false); spinner.setEnabled(false);
在onCreate()- 方法中并单击按钮。
onCreate()
editText.setEnabled(true); spinner.setEnabled(true);