Most visited

Recently visited

Added in API level 1

SingleLineTransformationMethod

public class SingleLineTransformationMethod
extends ReplacementTransformationMethod

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


此转换方法导致任何换行符(\ n)显示为空格而不是导致换行符,并导致回车符(\ r)没有外观。

Summary

Public constructors

SingleLineTransformationMethod()

Public methods

static SingleLineTransformationMethod getInstance()

Protected methods

char[] getOriginal()

要替换的字符是\ n和\ r。

char[] getReplacement()

字符\ n被替换为空格; 字符\ r被替换为FEFF(零宽度空间)。

Inherited methods

From class android.text.method.ReplacementTransformationMethod
From class java.lang.Object
From interface android.text.method.TransformationMethod

Public constructors

SingleLineTransformationMethod

Added in API level 1
SingleLineTransformationMethod ()

Public methods

getInstance

Added in API level 1
SingleLineTransformationMethod getInstance ()

Returns
SingleLineTransformationMethod

Protected methods

getOriginal

Added in API level 1
char[] getOriginal ()

要替换的字符是\ n和\ r。

Returns
char[]

getReplacement

Added in API level 1
char[] getReplacement ()

字符\ n被替换为空格; 字符\ r被替换为FEFF(零宽度空间)。

Returns
char[]

Hooray!