繁体   English   中英

当 EditText 的输入类型为密码时,Android 回话宣布 TextInputLayout 的内容描述不正确

[英]Android talk back announcing incorrect content description for TextInputLayout when the the input type of EditText is password

我的 android 应用程序中有一个具有以下结构的 TextInputLayout。

<com.google.android.material.textfield.TextInputLayout
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toTopOf="parent">

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:imeOptions="actionDone"
        android:id="@+id/mEdit"
        android:inputType="numberPassword"
        android:maxLength="4"
        android:singleLine="true"
        app:layout_constraintTop_toTopOf="parent" />

</com.google.android.material.textfield.TextInputLayout>

这里EditTextmaxLength4 但是,在启用对讲后,如果我们尝试在密码字段中编辑某些内容,对讲会宣布内容描述,例如Bullet,即使我们没有达到EditTextmaxLength也达到了最大长度。

输入第三个密码字符时显示不正确的内容描述

提前感谢您的宝贵意见。

使用com.google.android.material.textfield.TextInputEditText而不是在TextInputLayout中使用EditText

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM