2010/9/9 Tomáš Hubálek <[email protected]>: > I have a widget and I would like to detect position where user click > on some part of the widget's bitmap. I didn't found any way how to > detect coordinates of the touch on RemoteViews.
Correct -- there isn't any, AFAIK. > Only idea I have is > create layout with grid of transparent buttons, put by widget's bitmap > as background of such a layout and to every button set PendingIntent. I'd worry about the potential performance implications on the home screen for having that complex of an app widget. Otherwise, though, that should work, in theory. > Any nicer idea? For the long-term, you could submit a feature request on b.android.com for the Intent issued by the PendingIntent to have a couple of extras attached with the X/Y coordinates of the touch (probably relative to the app widget's upper-left corner). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- 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

