spannable string in android java for color

Solutions on MaxInterview for spannable string in android java for color by the best coders in the world

showing results for - "spannable string in android java for color"
Ginny
02 Nov 2019
1String text2 = text + CepVizyon.getPhoneCode() + "\n\n"
2            + getText(R.string.currentversion) + CepVizyon.getLicenseText();
3
4Spannable spannable = new SpannableString(text2);
5
6spannable.setSpan(new ForegroundColorSpan(Color.WHITE), text.length(), (text + CepVizyon.getPhoneCode()).length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
7
8myTextView.setText(spannable, TextView.BufferType.SPANNABLE);