开发者

Is it possible to programmatically scroll to a specific element in a LinearLayout?

My LinearLayout has a few TableRow elements, each of which contain a TextView and an EditText. Basically, the LinearLayout acts as a form. For various reasons, I'm not using a TableLayout, as it has been too problematic to configure to my needs.

I need to make sure each EditText field has been filled. Currently, if the user leaves out a field, my app will simply generate an error message telling the user which field had been left blank. To improve user experience, I want to allow the LinearLayout to scroll automatically to the TableRow so the user could easily find the blank field.

Is this possible with a LinearLayout?开发者_开发技巧


Have you tried setting the desired layout view's focus? Android View

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜