text = text + CepVizyon.getPhoneCode() + "\n\n"
+ getText(R.string.currentversion) + CepVizyon.getLicenseText();
activationText.setText(text);
myTextView.setText(text);
Tôi muốn thay đổi màu cho chuỗi của CepVizyon.getPhoneCode() ... làm cách nào tôi có thể thực hiện việc này ??Tôi làm cách nào để thay đổi phần màu của TextView?
Xem này: http://stackoverflow.com/questions/ 4897349/android-coloring-part-of-a-string-using-textview-settext –
Bản sao có thể có của [Đặt màu của khoảng TextView trong Android] (http://stackoverflow.com/questions/3282940/set-color-of -textview-span-in-android) – Suragch
@Suragch Làm thế nào để bạn biết rằng bài viết cũ hơn tôi? :) – atasoyh