Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 ()

Added in API level 1

Public Methods

public static SingleLineTransformationMethod getInstance ()

Added in API level 1

Protected Methods

protected char[] getOriginal ()

Added in API level 1

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

protected char[] getReplacement ()

Added in API level 1

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