问题描述
我在TextInputEditText布局上将9补丁图像设置为背景。问题在于错误图标和眼睛图标的位置错误:
我该如何解决?
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:errorText="@{viewmodel.passwordError}"
app:passwordToggleEnabled="true">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/login_editText_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/fui_password_hint"
android:imeOptions="actionDone"
android:inputType="textPassword"
android:background="@drawable/shadow_form"
android:text="@={viewmodel.passwordLoginValue}"
android:afterTextChanged="@{() -> viewmodel.onCredentialsTextChanged()}" />
</com.google.android.material.textfield.TextInputLayout>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)