如何删除 android 中的 EditText material 设计底线?

How to remove EditText material design bottom line in android?

我在我的 Android 应用程序中使用 material 设计 'com.google.android.material:material:1.3.0'(只是为密码字段添加密码切换)。我不希望其他 material 功能包含在我的 EditText.As 中,您可以在屏幕截图中看到,触摸 PasswordEditText 时会出现绿线。我怎样才能摆脱它并只保留 material 设计功能中的密码切换? 我试着用 app:boxBackgroundMode="none" app:boxStrokeWidth="0dp" app:boxStrokeWidthFocused="0dp" app:boxStrokeColor="@android:color/transparent" 删除该行但没有帮助。

这里是 Material 设计的 XML EditText:

<com.google.android.material.textfield.TextInputLayout
    android:id="@+id/editTextTextPersonName2"
    android:layout_width="match_parent"
    android:layout_marginTop="36dp"
    android:layout_marginRight="46dp"
    android:layout_marginLeft="46dp"
    android:paddingLeft="5dp"
    android:layout_height="wrap_content"
    app:hintEnabled="false"
    app:boxBackgroundMode="none"
    app:boxStrokeWidth="0dp"
    app:boxStrokeWidthFocused="0dp"
    app:boxStrokeColor="@android:color/transparent"
    android:ems="10"
    android:background="@drawable/edit_text_background"
    app:passwordToggleEnabled="true"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.503"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/editTextTextPersonName">
    <com.google.android.material.textfield.TextInputEditText
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:textInputLayoutFocusedRectEnabled="false"
        android:hint="Parol"
        android:textSize="20sp"
        android:drawableStart="@drawable/ic_baseline_security_24"
        android:paddingBottom="10dp"
        android:paddingTop="10dp"
        android:inputType="textPassword"
        android:drawablePadding="5dp"/>
</com.google.android.material.textfield.TextInputLayout>

TextInputEditText

中设置 android:background="@null