ReplacementTransformationMethod
abstract class ReplacementTransformationMethod : TransformationMethod
| kotlin.Any | |
| ↳ | android.text.method.ReplacementTransformationMethod |
This transformation method causes the characters in the getOriginal array to be replaced by the corresponding characters in the getReplacement array.
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| open CharSequence! |
getTransformation(source: CharSequence!, v: View!)Returns a CharSequence that will mirror the contents of the source CharSequence but with the characters in |
| open Unit |
onFocusChanged(view: View!, sourceText: CharSequence!, focused: Boolean, direction: Int, previouslyFocusedRect: Rect!) |
| Protected methods | |
|---|---|
| abstract CharArray! |
Returns the list of characters that are to be replaced by other characters when displayed. |
| abstract CharArray! |
Returns a parallel array of replacement characters for the ones that are to be replaced. |
Public constructors
ReplacementTransformationMethod
ReplacementTransformationMethod()
Public methods
getTransformation
open fun getTransformation(
source: CharSequence!,
v: View!
): CharSequence!
Returns a CharSequence that will mirror the contents of the source CharSequence but with the characters in getOriginal replaced by ones from getReplacement.
onFocusChanged
open fun onFocusChanged(
view: View!,
sourceText: CharSequence!,
focused: Boolean,
direction: Int,
previouslyFocusedRect: Rect!
): Unit
Protected methods
getOriginal
protected abstract fun getOriginal(): CharArray!
Returns the list of characters that are to be replaced by other characters when displayed.
getReplacement
protected abstract fun getReplacement(): CharArray!
Returns a parallel array of replacement characters for the ones that are to be replaced.