Is it possible to set a custom layout for the error popup in a TextView:
.
In textView.setError(String, Drawable) we can set only the error icon. showError() in the TextView and ErrorPopup , .
Any ideas? Thanks in advance! Michael
UPD:
Thanks for the comments, but as far as I understand, the theme trick is not applicable here: (Line TextView 3384 from android-10)
void fixDirection (boolean above) {
mAbove = above;
if (above) {
mView.setBackgroundResource (com.android.internal.R.drawable.popup_inline_error_above);
} else {
mView.setBackgroundResource (com.android.internal.R.drawable.popup_inline_error);
}
}
The android-15 parameter com.android.internal.R.styleable.Theme_errorMessageBackground uses the parameter, but it is internal.
Therefore, I see no way to solve this problem, except by writing my own error notification):
source share