Android edittext is underlined when typing

M.A.Murali picture M.A.Murali · Feb 10, 2016 · Viewed 10.7k times · Source

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?

I have tried all the combination of 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" />

My screen:

enter image description here

Answer

Paweł Mandes picture Paweł Mandes · Dec 19, 2018

android:inputType="textVisiblePassword" disabling text autocorrection