how to have bold and normal text in same textview in android?

前端 未结 7 1184
终归单人心
终归单人心 2021-02-18 23:48

I have searched internet and tried the following code but its not working

SpannableString ss1 = new SpannableString(\"Health: \");
           ss1.setSpan(new and         


        
7条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 00:28

    I think you should use 2 different textView, a label and one for the data. it's common and good practice

提交回复
热议问题