I\'m new to Android and I\'m working through a tutorial on programmatically creating a layout instead of doing it through the xml, I\'m sorta stuck can someone advise please. >
Try setting it up like this:
home_scroll.setLayoutParams(new ViewGroup.LayoutParams(480, 800)); home_scroll.addView(home_linear, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
The linearlayout should now fill the scrollview.