I have an EditText
with a drawableLeft
image. I need to add a vertical line in EditText
right beside my drawableLeft
like this example:
Easiest way that I can think of is to add that line into my drawable image. But generally is there any other way to do this?
Create a rectangular rounded corner shape in res/drawable/shape.xml
Now create a layout
I have set the Linear layout background with th rectangular rounded corner shape. It looks exactly as the image preview of urs.
Try this , your issue solved
In your .xml file ,
customborder.xml
You can create a
layout
and attache to the editText as a propertyfor example
in your
your_layout.xml
file you can put anything you want.Please check this
Fairly simple!
Just add a '
FrameLayout
'Replace
<your_object>
with your drawable image.