簡體   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