MandatoryStar
public class MandStar {
public static SpannableStringBuilder star(String hint)
{
String colored = " *";
SpannableStringBuilder builder = new SpannableStringBuilder();
builder.append(hint);
int start = builder.length();
builder.append(colored);
int end = builder.length();
builder.setSpan(new ForegroundColorSpan(Color.WHITE), start, end,
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
return builder;
}
}