Code example for StyleSpan

0
 
    private TextView mChannelView;
    private TextView mMessageView;
    private TextView mDateView;
 
    private static final StyleSpan STYLE_BOLD = new StyleSpan(Typeface.BOLD);
 
    public CellBroadcastListItem(Context context) {
        super(context);
    } 
 
    public CellBroadcastListItem(Context context, AttributeSet attrs) {
        super(context, attrs);
    } 
 
    CellBroadcastMessage getMessage() { 
        return mCbMessage;
    } 
 
    @Override 
    protected void onFinishInflate() {