Android EditText draw a divider line between its drawable and its text

后端 未结 4 1005
逝去的感伤
逝去的感伤 2020-12-31 10:05

I have an EditText with a drawableLeft image. I need to add a vertical line in EditText right beside my drawableLeft like

4条回答
  •  时光说笑
    2020-12-31 10:47

    You can create a layout and attache to the editText as a property

    android:drawableRight="@android:drawable/your_layout"
    

    for example

    
    

    in your your_layout.xml file you can put anything you want.

    Please check this

提交回复
热议问题