public class SingleLineTransformationMethod
extends ReplacementTransformationMethod
| java.lang.Object | ||
| ↳ | android.text.method.ReplacementTransformationMethod | |
| ↳ | android.text.method.SingleLineTransformationMethod | |
此转换方法导致任何换行符(\ n)显示为空格而不是导致换行符,并导致回车符(\ r)没有外观。
Public constructors |
|
|---|---|
SingleLineTransformationMethod() |
|
Public methods |
|
|---|---|
static SingleLineTransformationMethod |
getInstance() |
Protected methods |
|
|---|---|
char[] |
getOriginal() 要替换的字符是\ n和\ r。 |
char[] |
getReplacement() 字符\ n被替换为空格; 字符\ r被替换为FEFF(零宽度空间)。 |
Inherited methods |
|
|---|---|
android.text.method.ReplacementTransformationMethod
|
|
java.lang.Object
|
|
android.text.method.TransformationMethod
|
|
SingleLineTransformationMethod getInstance ()
| Returns | |
|---|---|
SingleLineTransformationMethod |
|
char[] getReplacement ()
字符\ n被替换为空格; 字符\ r被替换为FEFF(零宽度空间)。
| Returns | |
|---|---|
char[] |
|