You can’t change LinearLayout‘s orientation using its LayoutParams. It can be done only with a LinearLayout object.
LinearLayout layout = /* ... */;
layout.setOrientation(LinearLayout.VERTICAL);
You can’t change LinearLayout‘s orientation using its LayoutParams. It can be done only with a LinearLayout object.
LinearLayout layout = /* ... */;
layout.setOrientation(LinearLayout.VERTICAL);