Stay organized with collections
Save and categorize content based on your preferences.
transition
class transition
Summary
Constants |
static Int |
A transition that moves views in or out of the scene to or from the edges when a view visibility changes.
|
static Int |
A transition that fades views in and out.
|
static Int |
A transition that moves and resizes a view
|
static Int |
Used for Activity Transitions, this transition indicates that no Transition should be used.
|
static 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 |
A transition that moves views in or out of the scene to or from the left edge when a view visibility changes.
|
static 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 |
A transition that moves views in or out of the scene to or from the top edge when a view visibility changes.
|
Constants
explode
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
static val fade: Int
A transition that fades views in and out.
Value: 17760258
move
static val move: Int
A transition that moves and resizes a view
Value: 17760257
no_transition
static val no_transition: Int
Used for Activity Transitions, this transition indicates that no Transition should be used.
Value: 17760256
slide_bottom
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
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
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
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
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# R.transition\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\ntransition\n==========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/R.transition \"View this page in Java\") \n\n```\nclass transition\n```\n\n|---|---------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.R.transition](#) |\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [explode](#explode:kotlin.Int) A transition that moves views in or out of the scene to or from the edges when a view visibility changes. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [fade](#fade:kotlin.Int) A transition that fades views in and out. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [move](#move:kotlin.Int) A transition that moves and resizes a view |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [no_transition](#no_transition:kotlin.Int) Used for Activity Transitions, this transition indicates that no Transition should be used. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [slide_bottom](#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. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [slide_left](#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. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [slide_right](#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. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [slide_top](#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. |\n\n| Public constructors ||\n|----------------------------------------|---|\n| [transition](#transition())`()` \u003cbr /\u003e |\n\nConstants\n---------\n\n### explode\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val explode: Int\n```\n\nA transition that moves views in or out of the scene to or from the edges when a view visibility changes. \n\n Value: 17760259\n\n### fade\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val fade: Int\n```\n\nA transition that fades views in and out. \n\n Value: 17760258\n\n### move\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val move: Int\n```\n\nA transition that moves and resizes a view \n\n Value: 17760257\n\n### no_transition\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val no_transition: Int\n```\n\nUsed for Activity Transitions, this transition indicates that no Transition should be used. \n\n Value: 17760256\n\n### slide_bottom\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val slide_bottom: Int\n```\n\nA transition that moves views in or out of the scene to or from the bottom edge when a view visibility changes. \n\n Value: 17760260\n\n### slide_left\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val slide_left: Int\n```\n\nA transition that moves views in or out of the scene to or from the left edge when a view visibility changes. \n\n Value: 17760263\n\n### slide_right\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val slide_right: Int\n```\n\nA transition that moves views in or out of the scene to or from the right edge when a view visibility changes. \n\n Value: 17760262\n\n### slide_top\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val slide_top: Int\n```\n\nA transition that moves views in or out of the scene to or from the top edge when a view visibility changes. \n\n Value: 17760261\n\nPublic constructors\n-------------------\n\n### transition\n\n```\ntransition()\n```"]]