gpt4 book ai didi

android - 编辑文本中的密码可见性切换无法正常工作

转载 作者:行者123 更新时间:2023-11-29 19:26:16 27 4
gpt4 key购买 nike

当密码可见时,眼睛图标上的叉号不会出现。当密码在眼睛图标上可见时,如何放置叉号。

<android.support.design.widget.TextInputLayout
app:passwordToggleTint="@color/white"
app:passwordToggleEnabled="true"
android:textColorHint="#818893"
android:layout_weight="0.4"
android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="match_parent"
app:hintTextAppearance="@style/TextAppearance.AppCompat">

<EditText
android:padding="10dp"
android:imeOptions="actionGo"
android:maxLines="1"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:id="@+id/password"
android:hint="Password"
android:inputType="textWebPassword" />
</android.support.design.widget.TextInputLayout>

最佳答案

将您的支持库更新到 25.1.0 24.x 中密码切换可见性存在一些已知问题

引用这些问题:

关于android - 编辑文本中的密码可见性切换无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41341885/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com