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:
put this in edit text layout in your .xml file