How to hide underbar in EditText

后端 未结 25 2011
温柔的废话
温柔的废话 2020-11-28 00:52

How can I hide the EditText underbar (the prompt line with little serifs at the ends)?

There might be a better way to do what I want: I have a layout with an EditTe

25条回答
  •  温柔的废话
    2020-11-28 01:07

    You can set the EditText to have a custom transparent drawable or just use

    android:background="@android:color/transparent"
    

    or

    android:background="@null"
    

    or Programmatically

    editText.setBackgroundResource(android.R.color.transparent);
    

提交回复
热议问题