text = text + CepVizyon.getPhoneCode() + "\n\n"
+ getText(R.string.currentversion) + CepVizyon.getLicenseText();
activationText.setText(text);
myTextView.setText(text);
Run Code Online (Sandbox Code Playgroud)
我想改变CepVizyon.getPhoneCode()字符串的颜色.我怎样才能做到这一点?
我希望通过.setText("")方法更改TextView视图的文本,同时着色文本的一部分(或使其为粗体,斜体,透明等),而不是其余部分.例如:
title.setText("Your big island <b>ADVENTURE!</b>";
Run Code Online (Sandbox Code Playgroud)
我知道上面的代码是不正确的,但它有助于说明我想要实现的目标.我该怎么做?