i have 1 listview with some text now i want change "Club" in bold or "Cost: 1 GP, Damage: 1D6" in gray is possible???
String[] ad = {"Simple Melee Weapons", "Club\nCost: 1 GP, Damage: 1D6"}
Spannable span = new SpannableString(ad[1]);
span.setSpan(new ForegroundColorSpan(Color.GRAY), 0, ad[1].length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
span = new SpannableString(ad[0]);
StyleSpan boldSpan = new StyleSpan(Typeface.BOLD);
span .setSpan(boldSpan, 0, ad[0].length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
Try searching a little bit more. Stack has everything, this question has been asked a million times.
SpannableorHtmlChange color in a string arraythis is not possible, because a string array is not an object with a visible interface. But you can change the color of a substring in a TextView.