1String[] textArray = {"One", "Two", "Three", "Four"};
2LinearLayout linearLayout = new LinearLayout(this);
3setContentView(linearLayout);
4linearLayout.setOrientation(LinearLayout.VERTICAL);
5for( int i = 0; i < textArray.length; i++ )
6{
7 TextView textView = new TextView(this);
8 textView.setText(textArray[i]);
9 linearLayout.addView(textView);
10}
11