Here is technique you can try to remove underline from any textview or edit text using the given below example code snippet
<TextView
android:id="@+id/et"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:padding="10dp"
android:layout_marginBottom="10dp"
android:hint="This is first EditText"
android:fontFamily="sans-serif-light"
android:background="@null"
/>
Use of the attribute
android:background="@null"
you can remove underline from textview or edit text
You can also try putting transparent color to the background to remove underline beneath a textview.