Stay organized with collections
Save and categorize content based on your preferences.
R.transition
public
static
final
class
R.transition
extends Object
Summary
Constants |
int |
explode
A transition that moves views in or out of the scene to or from the edges when
a view visibility changes.
|
int |
fade
A transition that fades views in and out.
|
int |
move
A transition that moves and resizes a view
|
int |
no_transition
Used for Activity Transitions, this transition indicates that no Transition
should be used.
|
int |
slide_bottom
A transition that moves views in or out of the scene to or from the bottom edge when
a view visibility changes.
|
int |
slide_left
A transition that moves views in or out of the scene to or from the left edge when
a view visibility changes.
|
int |
slide_right
A transition that moves views in or out of the scene to or from the right edge when
a view visibility changes.
|
int |
slide_top
A transition that moves views in or out of the scene to or from the top edge when
a view visibility changes.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(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
|
wait(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
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
explode
public static final int explode
A transition that moves views in or out of the scene to or from the edges when
a view visibility changes.
Constant Value:
17760259
(0x010f0003)
fade
public static final int fade
A transition that fades views in and out.
Constant Value:
17760258
(0x010f0002)
move
public static final int move
A transition that moves and resizes a view
Constant Value:
17760257
(0x010f0001)
no_transition
public static final int no_transition
Used for Activity Transitions, this transition indicates that no Transition
should be used.
Constant Value:
17760256
(0x010f0000)
slide_bottom
public static final int slide_bottom
A transition that moves views in or out of the scene to or from the bottom edge when
a view visibility changes.
Constant Value:
17760260
(0x010f0004)
slide_left
public static final int slide_left
A transition that moves views in or out of the scene to or from the left edge when
a view visibility changes.
Constant Value:
17760263
(0x010f0007)
slide_right
public static final int slide_right
A transition that moves views in or out of the scene to or from the right edge when
a view visibility changes.
Constant Value:
17760262
(0x010f0006)
slide_top
public static final int slide_top
A transition that moves views in or out of the scene to or from the top edge when
a view visibility changes.
Constant Value:
17760261
(0x010f0005)
Public constructors
transition
public transition ()
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# R.transition\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Ctors](#pubctors) \\| [Inherited Methods](#inhmethods) \n\nR.transition\n============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/R.transition \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\nfinal\n\nclass\nR.transition\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.R.transition |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Constants ||\n|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [explode](/reference/android/R.transition#explode) A transition that moves views in or out of the scene to or from the edges when a view visibility changes. |\n| `int` | [fade](/reference/android/R.transition#fade) A transition that fades views in and out. |\n| `int` | [move](/reference/android/R.transition#move) A transition that moves and resizes a view |\n| `int` | [no_transition](/reference/android/R.transition#no_transition) Used for Activity Transitions, this transition indicates that no Transition should be used. |\n| `int` | [slide_bottom](/reference/android/R.transition#slide_bottom) A transition that moves views in or out of the scene to or from the bottom edge when a view visibility changes. |\n| `int` | [slide_left](/reference/android/R.transition#slide_left) A transition that moves views in or out of the scene to or from the left edge when a view visibility changes. |\n| `int` | [slide_right](/reference/android/R.transition#slide_right) A transition that moves views in or out of the scene to or from the right edge when a view visibility changes. |\n| `int` | [slide_top](/reference/android/R.transition#slide_top) 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](/reference/android/R.transition#transition())`() ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/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 `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/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` | ` `[wait](/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` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nConstants\n---------\n\n### explode\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int explode\n```\n\nA transition that moves views in or out of the scene to or from the edges when\na view visibility changes.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n17760259\n(0x010f0003)\n\n\n### fade\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int fade\n```\n\nA transition that fades views in and out.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n17760258\n(0x010f0002)\n\n\n### move\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int move\n```\n\nA transition that moves and resizes a view\n\n\u003cbr /\u003e\n\nConstant Value:\n\n17760257\n(0x010f0001)\n\n\n### no_transition\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int no_transition\n```\n\nUsed for Activity Transitions, this transition indicates that no Transition\nshould be used.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n17760256\n(0x010f0000)\n\n\n### slide_bottom\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int slide_bottom\n```\n\nA transition that moves views in or out of the scene to or from the bottom edge when\na view visibility changes.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n17760260\n(0x010f0004)\n\n\n### slide_left\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int slide_left\n```\n\nA transition that moves views in or out of the scene to or from the left edge when\na view visibility changes.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n17760263\n(0x010f0007)\n\n\n### slide_right\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int slide_right\n```\n\nA transition that moves views in or out of the scene to or from the right edge when\na view visibility changes.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n17760262\n(0x010f0006)\n\n\n### slide_top\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int slide_top\n```\n\nA transition that moves views in or out of the scene to or from the top edge when\na view visibility changes.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n17760261\n(0x010f0005)\n\n\nPublic constructors\n-------------------\n\n### transition\n\n```\npublic transition ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]