views:

89

answers:

1

Hello guys,

I've run into some difficulties with implementing a custom progress dialog. Even though an overlay intercepts touch events the user can still operate the trackball and click elements that are supposed to be disabled.

Is there any way around this?

A: 

Check the onTrackballEvent() method. Then try to directly returning true in the method without doing anything in it. This should kill the event right away.

Sephy
Your solution isn't precisely correct because the user can't navigate with the trackball that way but he can click it. So if a button is focused he can still click it. The solution was just to request foucs from the progress dialog and implemento nTrackballEvent(). Thanks for your advice :)
Kostia Dombrovsky
can u please post the solution?
Pria