Kamalanathan
Kamalanathan

Reputation: 1747

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>

Upvotes: 6

Views: 1254

Answers (2)

Sean Batson
Sean Batson

Reputation: 34

app:hintAnimationEnabled="false" fixes the issue of the hint text over lapping the pre populated text field.

Upvotes: 0

Dharmendra
Dharmendra

Reputation: 33996

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

Upvotes: 2

Related Questions