1
I’m trying to put a colorful icon on EditText
but the Android Studio
is warning that the attribute that colors the icon (android:drawableTint
) is only supported in API's >= 23
. What do I do to use in API's >= 15
?
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:ems="10"
android:id="@+id/mailText"
android:layout_gravity="center_horizontal"
android:hint="Email"
android:drawableRight="@android:drawable/sym_action_email"
android:drawableTint="@color/colorPrimary"
style="@style/AppTheme.VerticalLinearLayoutSpacing" />