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_lyout. 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);