Attribute drawableTint is only used in API level 23 and higher

1

I'm trying to put a color icon in EditText but 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 be able to use 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" />
    
asked by anonymous 03.08.2016 / 00:47

0 answers