How to hide underbar in EditText

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

    What I did was to create a Shape drawable and set that as the background:

    
    
    
        
    
        
    
    
    

    Note: I actually used @dimen and @color values for the firelds, but I've simplified the shape file here for clarity.

提交回复
热议问题