How to set part of text to bold when using AlertDialog.setMessage() in Android?

前端 未结 4 1727
别跟我提以往
别跟我提以往 2020-12-29 00:58

How to set part of text to Bold when using AlertDialog\'s setMessage()? Adding and to my Strin

4条回答
  •  情歌与酒
    2020-12-29 01:16

    In case if anyone wants to add only a single string:

    <b>Enter license key</b>
    

    Add this line in your Alertdialog code.

    dialog.setTitle(Html.fromHtml(getString(R.string.abouttxt)))
    

提交回复
热议问题