开发者

cursor position issue in activity

I have created one activity i.e loginpage. it contains some edit tex开发者_JS百科tboxes, when I run the application the cursor is defaultly going to last edit text field. My requirement is cursor should be defaultly in first edit text field.


EditText yourEdittext1=(EditText)findview...();
EditText yourEdittext2=(EditText)findview...();

yourEdittext1.requestFocus();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜