I know that we can change the font of the edit text using Typeface. But what about the errors we set for text editing? Take a look at the codes below:
Typeface font = Typeface.createFromAsset(getAssets(), "fonts/ATaha.ttf");
private EditText mPasswordView;
mPasswordView = (EditText) findViewById(R.id.password);
mPasswordView.setTypeface(font);
With this code, I could only change the font for text editing, but when I fixed the error as follows:
mPasswordView.setError(getString(R.string.error_field_required));
The error notification font is the default font for Android and does not change using the face type. How to change this?
source
share