任何人都可以告訴我如何適當地使用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