I have a widget with collection (this is important!). It looks like this:
I based my code on official Android documentation: Android App Widgets.
So for widget I use collection with custom Objects inside StackView collection. This collection is handled by StackRemoteViewsFactory (implements RemoteViewsService.RemoteViewsFactory). And as you can see each item has three ImageButtons and one TextView.
I know how to add onClick behavior for whole RemoteView item. This described in official docs.
But I need four onClick behaviors for each of my Views (buttons and textview).
My question: Is this possible to have different views onClicks for each StackView item in widget with RemoteView collection?
Now I don't see any possibilities how to this :(
UPDATE:
I want to have something similar with onClicks as in this question: Processing more than one button click at Android Widget. But a solution from that question doesn't work for widget with collection of RemoteViews because of differences in widgets implementations.