Hello,
How do you use a TextView to show multiple lines of text in android?
I tried doing android:singleLine = "false" but that's not working
Here is my code
for(int i = 1; i <= 10; i++)
{
tv.setText("instant " + i + ": ");
}
so it should say
instant 1:
instant 2:
instant 3:
instant 4:
instant 5:
instant 6:
instant 7:
instant 8:
instant 9:
instant 10:
BUT, the emulator only showing
instant 10:
How can I achieve this? Thanks!
How do you use a TextView to show multiple lines of text in android?
I tried doing android:singleLine = "false" but that's not working
Here is my code
for(int i = 1; i <= 10; i++)
{
tv.setText("instant " + i + ": ");
}
so it should say
instant 1:
instant 2:
instant 3:
instant 4:
instant 5:
instant 6:
instant 7:
instant 8:
instant 9:
instant 10:
BUT, the emulator only showing
instant 10:
How can I achieve this? Thanks!