zyw-205520

1.在string.xml文件中:

 <string name="tips_all"><Data><![CDATA[清理进程:<font color="#7700ff00"><b>%1$d<br/></b></font>清理内存:<font color="#7700ff00"><b>%2$sMB</b></font>]]></Data></string>

 

2. 代码中设置textView内容

textView.setText(Html.fromHtml(String.format(getResources().getString(R.string.tips_all),process,memory+"" )));

 

效果图

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2021-12-14
  • 2021-06-20
  • 2022-01-09
  • 2021-04-19
  • 2022-12-23
  • 2021-09-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-12-10
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案