-1

My point is i only can write/select 1st line of the textview i want to have for example:

My name is:

12345

Is it even possible to write in 2nd line or more lines?

Cœur
  • 37,241
  • 25
  • 195
  • 267

2 Answers2

1

My name is:\n12345

for more lines use more \n\n\n\n\n :-)

Matcoil
  • 890
  • 11
  • 23
0

You can also do many thing like....Bold italic or showing in list using one Text view.

Write your text in HTML format. i.e

String youttext="<b>My Name is Avi</b><br><br> <i>I m a Android Developer</i><br><br><ul><li>I m a Blogger too</li></ul>"

Textview yourview=(Textview) findViewById(R.id.textview);
        yourview.setText(Html.fromHtml(youttext));

You can show the Text in HTML format too. If you want to change the specific color text and style or shading etc.

Avinash Verma
  • 2,572
  • 1
  • 18
  • 22