开发者

EditText problem:

开发者 https://www.devze.com 2023-02-19 04:37 出处:网络
How to show the text entered by the user in edittext other than from first space... mean leaving a space in-front ....

How to show the text entered by the user in edittext other than from first space... mean leaving a space in-front ....

Is tha开发者_开发技巧t possible?.


I'd use android:paddingLeft attribute if you only want a some space to be appeared to the user.


Udaykiran,

I would accomplish this by attaching an onTextChanged() listener and manually adding a buffer of spaces in front each time the user enters a new character.

0

精彩评论

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