Bold words in a string of strings.xml in Android

前端 未结 9 2113
甜味超标
甜味超标 2020-12-01 02:44

I have a long text in one of the strings at strings.xml. I want to make bold and change the color of some words in that text.

How can I do it?

9条回答
  •  长情又很酷
    2020-12-01 02:52

    I was having a text something like:

    Forgot Password? Reset here.

    To implement this the easy way I used the existing android:textStyle="bold"

    
    
    
            
    
            
        
    

    Maybe it helps someone

提交回复
热议问题