How to add multiple TextView s for a LinearLayout by Java Code ( in Android )
<p>Here is my code. In the resulting screen it shows only the first TextView. Not the second one. Im kind of new to Android and please give a help.</p>

<pre><code>public class Details extends Activity {
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);

        TextView label = new TextView(this);
        label.setText("Moves");
        label.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
        label.setTextSize(20);        

        TextView label2 = new TextView(this);
        label2.setText("Time");
        label2.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
        label2.setTextSize(20);       

        LinearLayout ll = new LinearLayout(this);
        ll.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));
        ll.setOrientation(LinearLayout.VERTICAL);                           

        ll.addView(label);
        ll.addView(label2);

        setContentView(ll);
    }               
}
</code></pre>
