Android:Make characters bold in xml

后端 未结 4 1628
你的背包
你的背包 2021-01-12 20:41

I write this line in the strings.xml:

ThisCaaaaaa on the spot.

But the charac

4条回答
  •  萌比男神i
    2021-01-12 21:13

    When you set the text of some widget to this string use the following code:

    In strings.xml use this to add ur string:

    
        Caaaaaa on the spot.
        ]]>
        
    

    In your activity

    yourWidget.setText(Html.fromHtml(getString(R.string.Help)));
    

提交回复
热议问题