I have a widget with ImageView. On it are drawn several pictures of the same size with a known size. I need to determine which place ImageView was clicked on. I will define the rest. Is it possible to do this with a widget?

    1 answer 1

    In my opinion, this is possible only by knowing the coordinates of ImageView.

    Look here: https://stackoverflow.com/questions/35970636/how-to-check-which-image-side-is-pressed?noredirect=1&lq=1

    And here: https://stackoverflow.com/questions/6038867/android-how-to-detect-touch-location-on-imageview-if-the-image-view-is-scaled-b

    • the problem is that the widget has access to its elements via RemoteViews, and it has nothing more than setOnClickPendingIntent - dubok79