I am trying to apply a theme to CustomEditText, which is inherited directly from EditText, since the attribute "android: theme" will make any other classic widget. My theme does not use a style with a custom attribute, it overloads my apptheme attributes to have a different ColorControlNormal attribute. Here is my topic:
Apptheme:
<style name="Theme.Light.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@android:color/white</item>
<item name="android:colorBackground">@android:color/white</item>
<item name="colorControlNormal">@color/pink</item>
<item name="android:textColorPrimary">@color/grey_dark</item>
<item name="colorControlActivated">@color/pink</item>
</style>
The theme I want to apply to my CustomEditText:
<style name="CustomEditTextTheme">
<item name="android:textSize">@dimen/font_medium</item>
<item name="android:ems">8</item>
<item name="colorControlNormal">@color/grey_medium</item>
<item name="colorControlActivated">@color/pink</item>
<item name="android:textColorHint">@color/grey_medium</item>
</style>
I already read this one , but I don’t have custom style attributes, and I can’t apply “CustomEditTextTheme” to all my activity.
Obviously, he is android:theme="@style/CustomEditText
not doing the job.