Android design pattern guide says widget's content and layout can be dynamically adjusted to the size the user defined through resize operation here: Design guide for widgets
Example provided in the design guide:
But I do not see anything in the docs as to how to accomplish this. How do we change the layout as per resize operation? Any ideas regarding the approach will be appreciated.
@Choletski @azendh
I solved this problem by creating function that setOnClickPendingIntent on view, and then return it.
For example the code is like
And than function is called where you do "Get appropriate remote view."
Thanks to A--C , this is possible for Jellybean and above devices and is simple to implement. Below is the sample code using
onAppWidgetOptionsChanged
method