开发者

Focusing fields in android?

i have ten edit text item and validation for each field , when i click submit validation is processed , and if any invalidate field throw an alert , for example i have first name need to contain minimum 6 character , if validation fails i throw an alert .

what i need is to focus th开发者_Python百科e invalidate field automatically after throwing alert for entering the right values.

If there is anyway to do this.

Thanks.


use the requestFocus() method on the edittext containing the invalid value

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜