开发者

Android: Virtual Keyboard: the use has no idea what EditText he is filling in

开发者 https://www.devze.com 2023-03-10 18:52 出处:网络
I have a few forms that the user has to fill in and I use EditText to enter the information. the problem is, when the user uses the virtual keybo开发者_如何学Card there no information about which fie

I have a few forms that the user has to fill in and I use EditText to enter the information.

the problem is, when the user uses the virtual keybo开发者_如何学Card there no information about which field he is filling in.

so its fine when there is only one field but when he has 4 or more he fills in the first one, presses next and he has to remember what was the second field and so on

is there a way to set a title in the EditText so that instead of being just a text zone it has a title to remind the user what he is inputing ?


You can add a hint, which pre-fills the EditText with a useful reminder (in a faded-out colour). This disappears when the user starts typing.

android:hint="Type your name here"


Unfortunately the input method editor bits don't let you do that (though that would be nice). Try setting the attribute android:imeOptions="flagNoExtractUi" on the EditText instances.

0

精彩评论

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