Example usage for android.text Spanned SPAN_MARK_MARK

List of usage examples for android.text Spanned SPAN_MARK_MARK

Introduction

In this page you can find the example usage for android.text Spanned SPAN_MARK_MARK.

Prototype

int SPAN_MARK_MARK

To view the source code for android.text Spanned SPAN_MARK_MARK.

Click Source Link

Document

0-length spans with type SPAN_MARK_MARK behave like text marks: they remain at their original offset when text is inserted at that offset.

Usage

From source file:Main.java

/**
 * @see android.text.Html//  ww w . j  a  v  a  2  s .c om
 */
private static void start(Editable text, Object mark) {
    int len = text.length();
    text.setSpan(mark, len, len, Spanned.SPAN_MARK_MARK);
}