"Why doesn't the "Ori" text shows up?"

Because:
       TextView t = new TextView(this);
       t.setText("Ori");
       TextView t2 = new TextView(this);
       t.setText("Ori2");   // here you reset the text from TextView t
instead of TextView t2.
                                  // TextView t2 is empty: you don't set any
text

       LinearLayout layout = (LinearLayout)
findViewById(R.id.mainLayout);
       layout.addView(t);
       layout.addView(t2);

As hint: Try to set LayoutParams for your TextView before adding it to
layout

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to