How to hide underbar in EditText

后端 未结 25 2096
温柔的废话
温柔的废话 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:16

    In my case, editText.setBackgroundResource(R.color.transparent); is best.

    It doesn't remove default padding, just under bar.

    R.color.transparent = #00000000

提交回复
热议问题