任何人都可以告诉我如何适当地使用CheckBoxes和RadioButtons的setError函数。我能够在我的textView之后引发错误图标符号(!),但无法看到错误消息。按照Android的文档: sets the right-hand compound drawable of the TextView to the "error" icon and sets an error message that will be displayed in a popup when the TextView has focus. The icon and error message will be reset to null when any key events cause changes to the TextView's text. If the error is null, the error message and icon will be cleared.
你有人可以提供在复选框A和单选按钮的情况下,适当实施SETERROR的例子吗?
这里是我的代码 -设置错误Android
CheckBox box=(CheckBox)findViewById(R.id.propertyStatus1);
box.setError("Error");
你的问题不明确 – Snicolas 2012-02-08 07:47:13
SETERROR邮件不在复选框,单选按钮的情况下可见。 – 2012-02-08 07:49:24