is Flagged Span - Android Graphics

Android examples for Graphics:Spannable

Description

is Flagged Span

Demo Code


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

import android.text.Spanned;

public class Main {
    public static boolean isFlaggedSpan(@NonNull Spanned spanned,
            Object span, int flags) {
        return (spanned.getSpanFlags(span) & flags) == flags;
    }//ww  w .j a v  a2s.  c  o m
}

Related Tutorials