use of android.text.style.StyleSpan in project android_frameworks_base by ResurrectionRemix.
the class NotificationTests method BOLD.
static SpannableStringBuilder BOLD(CharSequence str) {
final SpannableStringBuilder ssb = new SpannableStringBuilder(str);
ssb.setSpan(new StyleSpan(Typeface.BOLD), 0, ssb.length(), 0);
return ssb;
}
use of android.text.style.StyleSpan in project ETSMobile-Android2 by ApplETS.
the class CourseTodayDecorator method decorate.
@Override
public void decorate(DayViewFacade view) {
view.setBackgroundDrawable(ContextCompat.getDrawable(context, R.drawable.calendar_course_today_circle));
view.addSpan(new StyleSpan(Typeface.BOLD));
}
use of android.text.style.StyleSpan in project ETSMobile-Android2 by ApplETS.
the class EventDecorator method decorate.
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new StyleSpan(Typeface.BOLD));
view.addSpan(new TriangleSpan(color));
}
use of android.text.style.StyleSpan in project ETSMobile-Android2 by ApplETS.
the class FinalExamDecorator method decorate.
@Override
public void decorate(DayViewFacade view) {
view.setBackgroundDrawable(ContextCompat.getDrawable(context, R.drawable.calendar_exam_circle));
view.addSpan(new StyleSpan(Typeface.BOLD));
}
use of android.text.style.StyleSpan in project ETSMobile-Android2 by ApplETS.
the class TodayDecorator method decorate.
@Override
public void decorate(DayViewFacade view) {
view.setBackgroundDrawable(ContextCompat.getDrawable(context, R.drawable.calendar_today_circle));
view.addSpan(new StyleSpan(Typeface.BOLD));
}
Aggregations