The above should work. However, keep in mind that the request will fail if you are in touch mode and the button is not focusable in touch mode. To set whether or not a button is focusable in touch mode, call button.setFocusableInTouchMode(true/false).
On Mar 16, 10:40 pm, me tun <[email protected]> wrote: > Yes, you should be able to use button.requestFocus(); > > On Mar 17, 1:19 pm, Zia <[email protected]> wrote: > > > > > Wondering if we have few buttons on a LinearLayout, is it possible to > > set focus to a button programmatically? > > > Please advice. > > > Thanks,- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

