Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.text.Spannable;
import android.text.SpannableString;

import android.text.style.StyleSpan;

public class Main {
    public static SpannableString stylePartTextBold(CharSequence text, int start, int end) {
        SpannableString span = new SpannableString(text);
        span.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), start, end, Spannable.SPAN_INCLUSIVE_INCLUSIVE);
        return span;
    }
}