The view isn't focusable. isFocusable returns false and requestFocus returns false. Why? This is a pretty simple view, created and passed setContentView in the onCreate method my dialog. I'm basically working off the ColorPicker API demo. So, how do I get that View that is created inside the dialog to accept trackball events? It accepts touch events so it seems like a fair expectation.
Thanks. On Apr 2, 6:10 pm, Dianne Hackborn <hack...@android.com> wrote: > Your view needs to take input focus. > > On Thu, Apr 2, 2009 at 4:38 PM, Keith Wiley <kbwi...@gmail.com> wrote: > > > I have a dialog that sets its content view to a View object it creates > > (a derived View actually) and the view can detect touch events without > > any trouble, no callback registering or listeners or anything...but I > > can't get any trackball events. I tried overriding onTrackballEvent() > > and even dispatchTrackballEvent(). Neither function fires when the > > trackball is moved or pressed while the dialog is the window. > > > I see that one can register for clicks and various things, but how > > does one access trackball events? > > > Thanks. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. 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@example.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---