Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Typeface;

import android.text.SpannableString;

import android.text.style.StyleSpan;

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