Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod#pubctors) \| [Methods](https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod#pubmethods) \| [Protected Methods](https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod#promethods) \| [Inherited Methods](https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod#inhmethods)

# HideReturnsTransformationMethod

*** ** * ** ***

` public class HideReturnsTransformationMethod `   
` ` ` extends https://developer.android.com/reference/android/text/method/ReplacementTransformationMethod ` ` `

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.text.method.ReplacementTransformationMethod](https://developer.android.com/reference/android/text/method/ReplacementTransformationMethod) ||
|   | ↳ | android.text.method.HideReturnsTransformationMethod |

<br />

*** ** * ** ***

This transformation method causes any carriage return characters (\\r) to be hidden by displaying them as zero-width non-breaking space characters (\\ufeff).

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod#HideReturnsTransformationMethod()() ` |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod` | ` https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod#getInstance()() ` |

| ### Protected methods ||
|---|---|
| ` char[]` | ` https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod#getOriginal()() ` The character to be replaced is \\r. |
| ` char[]` | ` https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod#getReplacement()() ` The character that \\r is replaced with is \\ufeff. |

### Inherited methods

From class ` https://developer.android.com/reference/android/text/method/ReplacementTransformationMethod ` ` abstract char[]` ` https://developer.android.com/reference/android/text/method/ReplacementTransformationMethod#getOriginal()() `

Returns the list of characters that are to be replaced by other characters when displayed.
` abstract char[]` ` https://developer.android.com/reference/android/text/method/ReplacementTransformationMethod#getReplacement()() `

Returns a parallel array of replacement characters for the ones that are to be replaced.
` https://developer.android.com/reference/java/lang/CharSequence` ` https://developer.android.com/reference/android/text/method/ReplacementTransformationMethod#getTransformation(java.lang.CharSequence,%20android.view.View)(https://developer.android.com/reference/java/lang/CharSequence source, https://developer.android.com/reference/android/view/View v) `

Returns a CharSequence that will mirror the contents of the source CharSequence but with the characters in `https://developer.android.com/reference/android/text/method/ReplacementTransformationMethod#getOriginal()` replaced by ones from `https://developer.android.com/reference/android/text/method/ReplacementTransformationMethod#getReplacement()`.
` void` ` https://developer.android.com/reference/android/text/method/ReplacementTransformationMethod#onFocusChanged(android.view.View,%20java.lang.CharSequence,%20boolean,%20int,%20android.graphics.Rect)(https://developer.android.com/reference/android/view/View view, https://developer.android.com/reference/java/lang/CharSequence sourceText, boolean focused, int direction, https://developer.android.com/reference/android/graphics/Rect previouslyFocusedRect) `

This method is called when the TextView that uses this TransformationMethod gains or loses focus.
From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/android/text/method/TransformationMethod ` ` abstract https://developer.android.com/reference/java/lang/CharSequence` ` https://developer.android.com/reference/android/text/method/TransformationMethod#getTransformation(java.lang.CharSequence,%20android.view.View)(https://developer.android.com/reference/java/lang/CharSequence source, https://developer.android.com/reference/android/view/View view) `

Returns a CharSequence that is a transformation of the source text -- for example, replacing each character with a dot in a password field.
` abstract void` ` https://developer.android.com/reference/android/text/method/TransformationMethod#onFocusChanged(android.view.View,%20java.lang.CharSequence,%20boolean,%20int,%20android.graphics.Rect)(https://developer.android.com/reference/android/view/View view, https://developer.android.com/reference/java/lang/CharSequence sourceText, boolean focused, int direction, https://developer.android.com/reference/android/graphics/Rect previouslyFocusedRect) `

This method is called when the TextView that uses this TransformationMethod gains or loses focus.

## Public constructors

### HideReturnsTransformationMethod

```
public HideReturnsTransformationMethod ()
```

<br />

<br />

## Public methods

### getInstance

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static HideReturnsTransformationMethod getInstance ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/text/method/HideReturnsTransformationMethod` | <br /> |

## Protected methods

### getOriginal

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected char[] getOriginal ()
```

The character to be replaced is \\r.

<br />

| Returns ||
|---|---|
| `char[]` | <br /> |

### getReplacement

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected char[] getReplacement ()
```

The character that \\r is replaced with is \\ufeff.

<br />

| Returns ||
|---|---|
| `char[]` | <br /> |