Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DrawableLeft is getting overlapped with hint using with TextInputLayout android

When I try to add a drawable to left of EditText with TextInputLayout the edittext hint is getting overlapped with the drawable.

How to avoid the drawable overlapping. Without using the TextInputLayout the drawableLeft is working fine

    <android.support.design.widget.TextInputLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <EditText
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/email"
                android:inputType="textEmailAddress"
                android:drawableLef="@drawable/email" />
        </android.support.design.widget.TextInputLayout>
like image 894
Kamalanathan Avatar asked Jun 04 '15 12:06

Kamalanathan


1 Answers

This was the bug in the library but now in new release Version-22.2.1 this issue is fixed.

like image 74
Dharmendra Avatar answered Oct 30 '22 21:10

Dharmendra