android html decoding

前端 未结 5 655
迷失自我
迷失自我 2021-01-06 11:03

I am confused about html text that I need to decode before I display it to the user. I do:

result= Html.fromHtml(temp).toString();

where te

5条回答
  •  无人及你
    2021-01-06 11:43

    String firstName = "Some Name";
    String secondName = "Other Name"
    String concatStrings = firstName + " \u25CF " + secondName;
    textView.setText(Html.fromHtml("Name: " + concatStrings));
    

    The unicode \u25CF => ●

    Use this LINK to get unicode symbols

提交回复
热议问题