/**@class android.graphics.drawable.TransitionDrawable implements android.graphics.drawable.Drawable.Callback @extends android.graphics.drawable.LayerDrawable An extension of LayerDrawables that is intended to cross-fade between the first and second layer. To start the transition, call {@link #startTransition}(int). To display just the first layer, call {@link #resetTransition}(). <p> It can be defined in an XML file with the <code><transition></code> element. Each Drawable in the transition is defined in a nested <code><item></code>. For more information, see the guide to <a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p> @attr ref android.R.styleable#LayerDrawableItem_left @attr ref android.R.styleable#LayerDrawableItem_top @attr ref android.R.styleable#LayerDrawableItem_right @attr ref android.R.styleable#LayerDrawableItem_bottom @attr ref android.R.styleable#LayerDrawableItem_drawable @attr ref android.R.styleable#LayerDrawableItem_id */ var TransitionDrawable = { /**Begin the second layer on top of the first layer. @param {Number} durationMillis The length of the transition in milliseconds */ startTransition : function( ) {}, /**Show the second layer on top of the first layer immediately @hide */ showSecondLayer : function( ) {}, /**Show only the first layer. */ resetTransition : function( ) {}, /**Reverses the transition, picking up where the transition currently is. If the transition is not currently running, this will start the transition with the specified duration. If the transition is already running, the last known duration will be used. @param {Number} duration The duration to use if no transition is running. */ reverseTransition : function( ) {}, /** */ draw : function( ) {}, /**Enables or disables the cross fade of the drawables. When cross fade is disabled, the first drawable is always drawn opaque. With cross fade enabled, the first drawable is drawn with the opposite alpha of the second drawable. Cross fade is disabled by default. @param {Boolean} enabled True to enable cross fading, false otherwise. */ setCrossFadeEnabled : function( ) {}, /**Indicates whether the cross fade is enabled for this transition. @return {Boolean} True if cross fading is enabled, false otherwise. */ isCrossFadeEnabled : function( ) {}, };