DrawableLeft 与使用 TextInputLayout android 的提示重叠
DrawableLeft is getting overlapped with hint using with TextInputLayout android
当我尝试使用 TextInputLayout 在 EditText 左侧添加可绘制对象时,edittext 提示与可绘制对象重叠。
如何避免drawable重叠。在不使用 TextInputLayout 的情况下,drawableLeft 工作正常
<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>
这是库中的bug,但现在在新版本 22.2.1 中已修复此问题。
app:hintAnimationEnabled="false"
修复了提示文本重叠预填充文本字段的问题。
当我尝试使用 TextInputLayout 在 EditText 左侧添加可绘制对象时,edittext 提示与可绘制对象重叠。
如何避免drawable重叠。在不使用 TextInputLayout 的情况下,drawableLeft 工作正常
<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>
这是库中的bug,但现在在新版本 22.2.1 中已修复此问题。
app:hintAnimationEnabled="false"
修复了提示文本重叠预填充文本字段的问题。