Thursday, October 28, 2010

[android-developers] multiple text view

im doing android programming
but im not so pro in java
im still in learning process on java

here is my code

TextView tv = new TextView(this);
tv.setText("line1");
setContentView(tv);

TextView tv2 = new TextView(this);
tv3.setText("line2");
setContentView(tv2);

TextView tv3 = new TextView(this);
tv3.setText("line3");
setContentView(tv3);

instead of getting

line1
line2
line3


i get line3 only

line3


any idea?

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate