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
精彩评论