super.onCreate(icicle);
setContentView(R.layout.scroll_view_2);
LinearLayout layout = (LinearLayout) findViewById(R.id.layout);
for (int i = 2; i < 64; i++) {
TextView textView = new TextView(this);
textView.setText("Text View " + i);
LinearLayout.LayoutParams p = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT
);
layout.addView(textView, p);
Button buttonView = new Button(this);
buttonView.setText("Button " + i);
layout.addView(buttonView, p);
}