Android source image edittext

I set the background image for Edittext. But when the user clicks on edittext, the start point of the cursor appears in front of the editext background image and looks uncomfortable. Is there a solution. Thanks in advance.

The EditText cursor starts as shown.

EditText cursor starts like the image shown

enter image description here

+3
source share
3 answers

Please use the left padding in Edittext so that your problem can be resolved.

+3
source

You must use a 9-patch image. If you do not know about the 9-patch image, then study

9-patch link .

enter image description here

+4
source

Android: paddingLeft = "5 "

+1

All Articles