开发者

Settings background for EDITTEXT cutting words in Android

开发者 https://www.devze.com 2023-04-06 05:54 出处:网络
I am having a strange issue, the words are cutting inside EDITTEXT i have开发者_如何学Python set an image as background. Plz help me... for example here ffsds, is being cut, I want it to shift to bit

I am having a strange issue, the words are cutting inside EDITTEXT i have开发者_如何学Python set an image as background. Plz help me... for example here ffsds, is being cut, I want it to shift to bit right so that it doesnt get cut.

Settings background for EDITTEXT cutting words in Android


Increase paddingLeft value of edit text.

...
android:paddingLeft="100dp"
...

in xml layout.


Increasing the left padding is the easy solution. But if this smiley image is always on the left of the edittext, you can set the image by using the attribute android:drawableLeft on the edittext.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号