Let’s say that I have two layouts for a widget: Layout1 and Layout2.
The default for the widget is Layout1, but I allow the user to choose
which layout they want the widget to be. So if the user changes to
Layout2, how do I programmatically change the layout to Layout2?
There isn’t a setContentView method for widgets like there is for Activities.
Thanks
You have to choose the layout when you’re building your remoteView. In my widget code: