本文介紹了Android edittext 輸入時帶下劃線的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
限時送ChatGPT賬號..
在 Android 中輸入編輯文本字段時,我需要刪除下劃線.對于名字,編輯文本的第一個字母應(yīng)該是大寫的,所以我已經(jīng)給出了 textCapSentences
,但在我的例子中,我在 edittext 字段中看到了下劃線.如何刪除它?
I need to removed underline when type in edit text field in Android. For the first name edit text first letter should be capital so that I have given textCapSentences
, but in my case I see underline in edittext fields. how to remove that?
textFilter|textNoSuggestions|textCapSentences
這是我的名字編輯文本:
its my first name edit text:
<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" />
我的屏幕:
推薦答案
android:inputType="textVisiblePassword"
禁用文本自動更正
這篇關(guān)于Android edittext 輸入時帶下劃線的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!