Skip a line in the textView

Asked

Viewed 1,327 times

0

How to skip a line in a textView in Android Studio? Or even regarding the formatting of the text itself, leave some part in bold for example? there is something integrated automatic or I would have to touch . xml?

  • 3

    Hello. Welcome to Sopt. Can you explain better what you mean by skipping line? What problem are you facing? Also, avoid asking two questions in one. Your question about bold would be better converted into another question. If you haven’t already, do our [tour] to better understand how the site works.

2 answers

2


I figured out how to skip the line. just use the " n"

  • But you must use only one n. Example: "blah blah blah"

1

You use n for the number of lines you want to skip, like, if you want to skip a line: n, two lines: n, three lines: n n and so on !

as for Bold: I use in textstyle: Bold

EX.:

<TextView
            android:id="@+id/tv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textStyle="bold"
            android:text="Teste"/>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.