views:

346

answers:

1

Hi Folks,

Is it possible to set a focus to a button widget which lies somewhere down in my layout. onCreate of the activity my control/focus should be on that button programmatically.

Regards, Vinayak

+2  A: 

Yeah it's possible

Button myBtn=(Button)findViewById(R.id.myButtonId);
myBtn.requestFocus();
Pentium10