DO NOT set buttons focusable in touch mode. Just don't. On Wed, Mar 18, 2009 at 6:54 PM, MJB <[email protected]> wrote: > > 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 - > > >
-- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

