Has a way very, very, very easy.
Instead of inheriting your Custom EditText from android.widget.EditText, inherit this class and see if it works:
android.support.v7.internal.widget.TintEditText
Class Link: TintEditText.java
Read the Javadoc class, it says:
Throughout this page (using the support library APIs) there is caution which: When using classes from the support library, make sure you import the class from the appropriate package. For example, when applying the ActionBar class:
- android.support.v7.app.ActionBar when using the support library.
- android.app.ActionBar when developing only for API level 11 or higher.
I have interpreted this, that is, if you are using a support library, always try to import or inherit the appropriate package. (Nothing less than lol .: D)
source share