Ahmed Said Ahmed Said - 3 years ago 122
Android Question

Cursor starting issue in Android layout activity

I know it maybe looks a simple question but it really annoying me, I have an Activity contains 3 "EditText", and when I lunch that activity it the cursor start in second one "EditText", what I want is starting the cursor on the "EditText" I choose for example first "EditText".

Note: I'm using Activity contains Scrollview and Constraint layout.

Answer Source

Put <requestFocus> in the XML of the EditText you want to have initial focus. See Layout Resources.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download