Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.graphics.Typeface;
import android.text.Spannable;
import android.text.SpannableString;

import android.text.style.StyleSpan;

public class Main {
    public static CharSequence bold(CharSequence sequence) {
        SpannableString spannable = new SpannableString(sequence);
        spannable.setSpan(new StyleSpan(Typeface.BOLD), 0, sequence.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
        return spannable;
    }
}