get Spans from Spanned - Android Graphics

Android examples for Graphics:Spannable

Description

get Spans from Spanned

Demo Code


//package com.java2s;
import android.support.annotation.NonNull;

import android.text.Spanned;

public class Main {
    public static Object[] getSpans(@NonNull Spanned spanned, int start,
            int end) {
        Class<Object> anyType = Object.class;
        return spanned.getSpans(start, end, anyType);
    }//from   www . java2  s  .c  o  m
}

Related Tutorials