Ai đó có thể cho tôi biết cách sử dụng hàm setError một cách thích hợp cho CheckBox và RadioButton. Tôi có thể tăng biểu tượng biểu tượng lỗi (!) Sau textView nhưng không thể nhìn thấy thông báo lỗi. Theo tài liệu của 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.
Bạn có thể cung cấp ví dụ về việc triển khai đúng cài đặt Lỗi trong trường hợp hộp kiểm và radioButton không?
Đây là mã của tôi -Đặt lỗi Android
CheckBox box=(CheckBox)findViewById(R.id.propertyStatus1);
box.setError("Error");
câu hỏi của bạn không rõ ràng – Snicolas
setError tin nhắn không hiển thị trong trường hợp hộp kiểm và RadioButton. –