I\'m trying to write new custom style for my android application. I need to give style to errorText which appears after setting setError
in EditText
I don't think you can customize its style that way since the error popup uses an internal style:
mPopupInlineErrorBackgroundId = getResourceId(mPopupInlineErrorBackgroundId,
com.android.internal.R.styleable.Theme_errorMessageBackground);
mView.setBackgroundResource(mPopupInlineErrorBackgroundId);
However, you can set a Spanned and a custom error icon using the overloaded setError(CharSequence, Drawable).
You can easily create a Spanned
from HTML using fromHtml().
However, you still won't be able to set the popup background image :-(