Reputation: 1747
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
Reputation: 34
app:hintAnimationEnabled="false"
fixes the issue of the hint text over lapping the pre populated text field.
Upvotes: 0
Reputation: 33996
This was the bug in the library but now in new release Version-22.2.1 this issue is fixed.
Upvotes: 2