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.text.Spannable;
import android.text.SpannableString;

import android.text.style.RelativeSizeSpan;

public class Main {
    public static CharSequence small(CharSequence sequence) {
        SpannableString spannable = new SpannableString(sequence);
        spannable.setSpan(new RelativeSizeSpan(0.9f), 0, sequence.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
        return spannable;
    }
}