开发者

request focus on edit text

I have got different issue in androi开发者_开发问答d application. I have taken 3 EditTexts in order. My intention is when I setOnClick on 1st editText the virtual keypad appearing. When i clicked on next on virtual key pad the courser is displaying in 2nd EditText. But i should not get the courser in 2nd editText it shoulod focus on 3rd EditText. How can I focus in 3rd edittext?

Please, help.

Thanks in advance.


You can specify

android:nextFocusDown

property in your layout.xml. For example (for edittext1):

android:nextFocusDown="@+id/edittext3"


Call requestFocus() on your third editText.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜