# SearchView.TransitionState

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/search/SearchView.java)

*** ** * ** ***


```
public enum SearchView.TransitionState
```

<br />

*** ** * ** ***

Enum that defines the possible transition states of an `https://developer.android.com/reference/com/google/android/material/search/SearchView`.

## Summary

| ### Enum Values |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/search/SearchView.TransitionState#HIDDEN` |   |
| `https://developer.android.com/reference/com/google/android/material/search/SearchView.TransitionState#HIDING` |   |
| `https://developer.android.com/reference/com/google/android/material/search/SearchView.TransitionState#SHOWING` |   |
| `https://developer.android.com/reference/com/google/android/material/search/SearchView.TransitionState#SHOWN` |   |

| ### Public methods |
|---|---|
| `static https://developer.android.com/reference/com/google/android/material/search/SearchView.TransitionState` | `https://developer.android.com/reference/com/google/android/material/search/SearchView.TransitionState#valueOf(java.lang.String)(https://developer.android.com/reference/java/lang/String name)` Returns the enum constant of this type with the specified name. |
| `static SearchView.TransitionState[]` | `https://developer.android.com/reference/com/google/android/material/search/SearchView.TransitionState#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### HIDDEN

```
SearchView.TransitionState SearchView.TransitionState.HIDDEN
```

### HIDING

```
SearchView.TransitionState SearchView.TransitionState.HIDING
```

### SHOWING

```
SearchView.TransitionState SearchView.TransitionState.SHOWING
```

### SHOWN

```
SearchView.TransitionState SearchView.TransitionState.SHOWN
```

## Public methods

### valueOf

```
public static SearchView.TransitionState valueOf(String name)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Returns |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/search/SearchView.TransitionState` | the enum constant with the specified name |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if this enum type has no constant with the specified name |

### values

```
public static SearchView.TransitionState[] values()
```

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

| Returns |
|---|---|
| `SearchView.TransitionState[]` | an array containing the constants of this enum type, in the order they're declared |