开发者

request focus on edit text

开发者 https://www.devze.com 2023-02-20 23:57 出处:网络
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 n

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

精彩评论

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