# R.transition

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

# transition

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/R.transition "View this page in Java")  

```
class transition
```

|---|----------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)               ||
| ↳ | [android.R.transition](https://developer.android.com/reference/kotlin/android/R.transition#) |

## Summary

|                                                                                                                                                   Constants                                                                                                                                                   ||
|----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [explode](https://developer.android.com/reference/kotlin/android/R.transition#explode:kotlin.Int) A transition that moves views in or out of the scene to or from the edges when a view visibility changes.                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [fade](https://developer.android.com/reference/kotlin/android/R.transition#fade:kotlin.Int) A transition that fades views in and out.                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [move](https://developer.android.com/reference/kotlin/android/R.transition#move:kotlin.Int) A transition that moves and resizes a view                                                                                      |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [no_transition](https://developer.android.com/reference/kotlin/android/R.transition#no_transition:kotlin.Int) Used for Activity Transitions, this transition indicates that no Transition should be used.                   |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [slide_bottom](https://developer.android.com/reference/kotlin/android/R.transition#slide_bottom:kotlin.Int) A transition that moves views in or out of the scene to or from the bottom edge when a view visibility changes. |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [slide_left](https://developer.android.com/reference/kotlin/android/R.transition#slide_left:kotlin.Int) A transition that moves views in or out of the scene to or from the left edge when a view visibility changes.       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [slide_right](https://developer.android.com/reference/kotlin/android/R.transition#slide_right:kotlin.Int) A transition that moves views in or out of the scene to or from the right edge when a view visibility changes.    |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [slide_top](https://developer.android.com/reference/kotlin/android/R.transition#slide_top:kotlin.Int) A transition that moves views in or out of the scene to or from the top edge when a view visibility changes.          |

|                                             Public constructors                                              ||
|-----------------------------------------------------------------------------------------------------------|---|
| [transition](https://developer.android.com/reference/kotlin/android/R.transition#transition())`()` <br /> |

## Constants

### explode

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

```
static val explode: Int
```

A transition that moves views in or out of the scene to or from the edges when a view visibility changes.  

    Value: 17760259

### fade

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

```
static val fade: Int
```

A transition that fades views in and out.  

    Value: 17760258

### move

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

```
static val move: Int
```

A transition that moves and resizes a view  

    Value: 17760257

### no_transition

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

```
static val no_transition: Int
```

Used for Activity Transitions, this transition indicates that no Transition should be used.  

    Value: 17760256

### slide_bottom

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

```
static val slide_bottom: Int
```

A transition that moves views in or out of the scene to or from the bottom edge when a view visibility changes.  

    Value: 17760260

### slide_left

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

```
static val slide_left: Int
```

A transition that moves views in or out of the scene to or from the left edge when a view visibility changes.  

    Value: 17760263

### slide_right

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

```
static val slide_right: Int
```

A transition that moves views in or out of the scene to or from the right edge when a view visibility changes.  

    Value: 17760262

### slide_top

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

```
static val slide_top: Int
```

A transition that moves views in or out of the scene to or from the top edge when a view visibility changes.  

    Value: 17760261

## Public constructors

### transition

```
transition()
```