I'm coding a widget for the first time and I have an instance of RemoteViews
that contains a LinearLayout
with the id R.id.linear_layout
. At some point I need to change the orientation of that LinearLayout
(inside the onUpdate
method of my AppWidgetProvider
). How can I do that?
RemoteViews remoteViews = new RemoteViews(context.getPackageName(),
R.layout.widget_layout);
// change the orientaion of the linearLayout
appWidgetManager.updateAppWidget(widgetId, remoteViews);