Attribute drawableTint is only used in API level 23 and Higher

Asked

Viewed 279 times

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" />
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.