Search code examples
androidandroid-design-libraryandroiddesignsupport

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>

Solution

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