to top
Android APIs
public class

SingleLineTransformationMethod

extends ReplacementTransformationMethod
java.lang.Object
   ↳ android.text.method.ReplacementTransformationMethod
     ↳ android.text.method.SingleLineTransformationMethod

Class Overview

This transformation method causes any newline characters (\n) to be displayed as spaces instead of causing line breaks, and causes carriage return characters (\r) to have no appearance.

Summary

Public Constructors
SingleLineTransformationMethod()
Public Methods
static SingleLineTransformationMethod getInstance()
Protected Methods
char[] getOriginal()
The characters to be replaced are \n and \r.
char[] getReplacement()
The character \n is replaced with is space; the character \r is replaced with is FEFF (zero width space).
[Expand]
Inherited Methods
From class android.text.method.ReplacementTransformationMethod
From class java.lang.Object
From interface android.text.method.TransformationMethod

Public Constructors

public SingleLineTransformationMethod ()

Since: API Level 1

Public Methods

public static SingleLineTransformationMethod getInstance ()

Since: API Level 1

Protected Methods

protected char[] getOriginal ()

Since: API Level 1

The characters to be replaced are \n and \r.

protected char[] getReplacement ()

Since: API Level 1

The character \n is replaced with is space; the character \r is replaced with is FEFF (zero width space).