Example usage for android.text.style ReplacementSpan subclass-usage

List of usage examples for android.text.style ReplacementSpan subclass-usage

Introduction

In this page you can find the example usage for android.text.style ReplacementSpan subclass-usage.

Usage

From source file io.github.hidroh.materialistic.widget.AsteriskSpan.java

public class AsteriskSpan extends ReplacementSpan {
    private final int mBackgroundColor;
    private final int mTextColor;
    private final float mPadding;

    public AsteriskSpan(Context context) {

From source file com.android.mail.text.FolderSpan.java

/**
 * A replacement span to use when displaying folders in conversation view. Prevents a folder name
 * from wrapping mid-name, and ellipsizes very long folder names that can't fit on a single line.
 */
public class FolderSpan extends ReplacementSpan {
    private final TextPaint mWorkPaint = new TextPaint();

From source file android.support.text.emoji.EmojiSpan.java

/**
 * Base span class for the emoji replacement. When an emoji is found and needs to be replaced in a
 * CharSequence, an instance of this class is added to the CharSequence.
 */
@RequiresApi(19)
public abstract class EmojiSpan extends ReplacementSpan {

From source file org.mariotaku.twidere.text.OriginalStatusSpan.java

/**
 * Created by mariotaku on 15/6/15.
 */
public class OriginalStatusSpan extends ReplacementSpan {

    private final RectF mBounds;