文本=文本+ CepVizyon.getPhone code()+\ñ\ N
+的getText(R.string.currentversion)+ CepVizyon.getLicenseText();
activationText.setText(文本);
myTextView.setText(文本);
我想改变颜色CepVizyon.getPhone code()的字符串...我怎么能做到这一点?
解决方案 myTextView.setText(Html.fromHtml(文字+<字体颜色=白>+ CepVizyon.getPhone code()+< / FONT>< BR>< BR>中
+的getText(R.string.currentversion)+ CepVizyon.getLicenseText()));
text = text + CepVizyon.getPhoneCode() + "\n\n"
+ getText(R.string.currentversion) + CepVizyon.getLicenseText();
activationText.setText(text);
myTextView.setText(text);
I want to change color for CepVizyon.getPhoneCode()'s string... how can I do this??
解决方案myTextView.setText(Html.fromHtml(text + "<font color=white>" + CepVizyon.getPhoneCode() + "</font><br><br>"
+ getText(R.string.currentversion) + CepVizyon.getLicenseText()));