Home > Software design >  How to gives space to paragraph inside string value
How to gives space to paragraph inside string value

Time:10-03

I have some text inside string of value folder in android studio and I want to give space between paragraph but I don't know how to do that ?

CodePudding user response:

You can add your string in the string file in string.xml

via

<string name="please_sign_in_to_continue">Please sign in to continue</string>

you can add make space in between sentences or paragraph.

Don't forget to implement it in layout.xml also.

CodePudding user response:

you can use \n for new line and add space by entering space

for example:

<string name="above_eightteen">I confirm that \n I am above 18 years and agree to all Age restriction disclaimer.</string>

and use this string value in your layout.

  • Related