gpt4 book ai didi

Android 编辑文字打字时有下划线

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:02:07 25 4
gpt4 key购买 nike

在 Android 中编辑文本字段时,我需要删除下划线。对于名字编辑文本,第一个字母应该大写,以便我给出 textCapSentences,但在我的例子中,我看到编辑文本字段中有下划线。如何删除它?

我已经尝试了textFilter|textNoSuggestions|textCapSentences的所有组合

这是我的名字编辑文本:

    <EditText
android:id="@+id/signup_lname"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@color/signup_layer_bg2"
android:ems="10"
android:gravity="center"
android:hint="@string/signup_lname"
android:imeOptions="actionDone"
android:inputType="textFilter|textNoSuggestions|textCapSentences"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:singleLine="true"
android:textColor="@android:color/white"
android:textColorHint="@android:color/white"
android:textCursorDrawable="@drawable/custom_cursor" />

我的屏幕:

enter image description here

最佳答案

android:inputType="textVisiblePassword" 禁用文本自动更正

关于Android 编辑文字打字时有下划线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35323111/

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