0

I want to format texts so that they can appear real in their form. The text I'm making has different characters in italics, bold and plain. Please help me. I was trying to place the html texts but it gave error HTML TEXTS

<string-array name="newbrandDesc">
        <item>Lyrics Here in bold and in italis with text margins and spaces for No.1</item>
        <item>Lyrics Here in bold and in italis with text margins and spaces for No.2</item>
        <item>Lyrics Here in bold and in italis with text margins and spaces for No.3</item>
        <item>Lyrics Here in bold and in italis with text margins and spaces for No.4</item>
        <item>Lyrics Here in bold and in italis with text margins and spaces for No.5</item>
    </string-array>

1
  • @harjinder bains, how can i use <item> text here</item> to pass array-list into listview. Is there a way a i can use CDATA and pass into <item>???? Commented Mar 4, 2020 at 10:48

1 Answer 1

0

You can use HTML tags for underline, italic, bold and so on. You can follow this link Android: html in strings.xml I hope it would helpful.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.