I want to custom the edit text as below image
Currently, I am using a View with width = 1dp
to trick for this case.
Actually it's a dirty approach so I want to make a drawable file by layer-list then add to background of EditText. It will look like:
______________
______________
On other hand, as Android Edit Text attribute we can use drawableTop
and drawableBottom
to add a divider ( just a shape line
) into.
My problem :
Method 1 -> I can not create a background with top and bottom as a line
Method 2 -> I have tried to use drawableTop but it does not show