Android Programming Press on the image to return to the main documentation page.

AnimationPlus

List of types:

AnimationDrawable
AnimationPlus
AnimationSet
ClipDrawable
LayerDrawable
TransitionDrawable

AnimationDrawable


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  AddFrame (Frame As Object, Duration As Int)

  GetCurrent As android.graphics.drawable.Drawable

  GetDuration (Index As Int) As Int

  GetFrame (Index As Int) As android.graphics.drawable.Drawable

  GetNumberOfFrames As Int

  Initialize

  IsInitialized As Boolean

  IsRunning As Boolean

  OneShot As Boolean

  Start

  Stop

Members description:

AddFrame (Frame As Object, Duration As Int)
Adds a frame to the animation
Frame: the frame to add. It must be a drawable or a bitmap.
Duration: how long in milliseconds the frame should appear.
GetCurrent As android.graphics.drawable.Drawable
Returns the drawable currently displayed.
GetDuration (Index As Int) As Int
Returns the duration in milliseconds of the frame at the specified index.
GetFrame (Index As Int) As android.graphics.drawable.Drawable
Returns the drawable at the specified frame index.
GetNumberOfFrames As Int
Returns the number of frames in the animation
Initialize
Initializes the AnimationDrawable.
IsInitialized As Boolean
IsRunning As Boolean
Indicates whether the animation is currently running or not.
OneShot As Boolean
Gets/sets whether the animation will play once.
Start
Starts the animation, looping if necessary. This method has no effect if the animation is running.
Stop
Stops the animation. This method has no effect if the animation is not running.

AnimationPlus


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

AnimationEnd

Members:


  Duration As Long

  InitializeAlpha (arg1 As String, arg2 As Float, arg3 As Float)

  InitializeRotate (arg1 As String, arg2 As Float, arg3 As Float)

  InitializeRotateCenter (arg1 As String, arg2 As Float, arg3 As Float, arg4 As android.view.View)

  InitializeScale (arg1 As String, arg2 As Float, arg3 As Float, arg4 As Float, arg5 As Float)

  InitializeScaleCenter (arg1 As String, arg2 As Float, arg3 As Float, arg4 As Float, arg5 As Float, arg6 As android.view.View)

  InitializeTranslate (EventName As String, FromDX As Float, FromDY As Float, ToDX As Float, ToDY As Float)

  INTERPOLATOR_ACCELERATE As Int

  INTERPOLATOR_ACCELERATE_DECELERATE As Int

  INTERPOLATOR_ANTICIPATE As Int

  INTERPOLATOR_ANTICIPATE_OVERSHOOT As Int

  INTERPOLATOR_BOUNCE As Int

  INTERPOLATOR_CYCLE As Int

  INTERPOLATOR_DECELERATE As Int

  INTERPOLATOR_LINEAR As Int

  INTERPOLATOR_OVERSHOOT As Int

  IsInitialized As Boolean

  IsPaused As Boolean [read only]

  PauseTranslation

  PersistAfter As Boolean

  REPEAT_INFINITE As Int

  REPEAT_RESTART As Int

  REPEAT_REVERSE As Int

  RepeatCount As Int

  RepeatMode As Int

  ResumeTranslation

  SetInterpolator (Interpolator As Int)

  SetInterpolatorWithParam (Interpolator As Int, Param As Float)

  Start (MyView As android.view.View)

  StartOffset As Long

  Stop (arg0 As android.view.View)

Members description:

Duration As Long
InitializeAlpha (arg1 As String, arg2 As Float, arg3 As Float)
InitializeRotate (arg1 As String, arg2 As Float, arg3 As Float)
InitializeRotateCenter (arg1 As String, arg2 As Float, arg3 As Float, arg4 As android.view.View)
InitializeScale (arg1 As String, arg2 As Float, arg3 As Float, arg4 As Float, arg5 As Float)
InitializeScaleCenter (arg1 As String, arg2 As Float, arg3 As Float, arg4 As Float, arg5 As Float, arg6 As android.view.View)
InitializeTranslate (EventName As String, FromDX As Float, FromDY As Float, ToDX As Float, ToDY As Float)
INTERPOLATOR_ACCELERATE As Int
INTERPOLATOR_ACCELERATE_DECELERATE As Int
INTERPOLATOR_ANTICIPATE As Int
INTERPOLATOR_ANTICIPATE_OVERSHOOT As Int
INTERPOLATOR_BOUNCE As Int
INTERPOLATOR_CYCLE As Int
INTERPOLATOR_DECELERATE As Int
INTERPOLATOR_LINEAR As Int
INTERPOLATOR_OVERSHOOT As Int
IsInitialized As Boolean
IsPaused As Boolean [read only]
Gets whether the translation animation is paused.
PauseTranslation
Pauses a translation animation.
PersistAfter As Boolean
Gets/sets if the transformation that this animation performed will persist when it is finished.
REPEAT_INFINITE As Int
REPEAT_RESTART As Int
REPEAT_REVERSE As Int
RepeatCount As Int
RepeatMode As Int
ResumeTranslation
Resumes a paused translation animation.
SetInterpolator (Interpolator As Int)
Sets the acceleration curve for this animation. Defaults to a linear interpolation.
See http://developer.android.com/reference/android/view/animation/Interpolator.html for further details.
Interpolator: one of the INTERPOLATOR constants.
The Cycle Interpolator cannot be used with this function because the parameter is mandatory.
SetInterpolatorWithParam (Interpolator As Int, Param As Float)
Sets the acceleration curve for this animation. Defaults to a linear interpolation.
See http://developer.android.com/reference/android/view/animation/Interpolator.html for further details.
Interpolator: one of the INTERPOLATOR constants.
Param: factor or tension.
The Accelerate/Decelerate Interpolator and the Bounce Interpolator have no parameter.
Start (MyView As android.view.View)
StartOffset As Long
Gets/sets when the animation should begin after the Start function was called (in milliseconds).
Stop (arg0 As android.view.View)

AnimationSet


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  AddAnimation (Anim As AnimationPlus)

  Duration As Long

  Initialize (ShareInterpolator As Boolean)

  INTERPOLATOR_ACCELERATE As Int

  INTERPOLATOR_ACCELERATE_DECELERATE As Int

  INTERPOLATOR_ANTICIPATE As Int

  INTERPOLATOR_ANTICIPATE_OVERSHOOT As Int

  INTERPOLATOR_BOUNCE As Int

  INTERPOLATOR_CYCLE As Int

  INTERPOLATOR_DECELERATE As Int

  INTERPOLATOR_LINEAR As Int

  INTERPOLATOR_OVERSHOOT As Int

  IsInitialized As Boolean

  PersistAfter As Boolean

  SetInterpolator (Interpolator As Int)

  SetInterpolatorWithParam (Interpolator As Int, Param As Float)

  Start (view As android.view.View)

  StartOffset As Long

  Stop (view As android.view.View)

Members description:

AddAnimation (Anim As AnimationPlus)
Adds a child animation to this animation set.
Anim: animation to add.
Duration As Long
Gets/sets the duration in milliseconds of every child animation.
Initialize (ShareInterpolator As Boolean)
Initializes the AnimationSet.
ShareInterpolator: pass true if all of the animations in this set should use the interpolator associated with this AnimationSet. Pass false if each animation should use its own interpolator.
INTERPOLATOR_ACCELERATE As Int
INTERPOLATOR_ACCELERATE_DECELERATE As Int
INTERPOLATOR_ANTICIPATE As Int
INTERPOLATOR_ANTICIPATE_OVERSHOOT As Int
INTERPOLATOR_BOUNCE As Int
INTERPOLATOR_CYCLE As Int
INTERPOLATOR_DECELERATE As Int
INTERPOLATOR_LINEAR As Int
INTERPOLATOR_OVERSHOOT As Int
IsInitialized As Boolean
PersistAfter As Boolean
Gets/sets if the transformations that this animation set performed will persist when it is finished.
SetInterpolator (Interpolator As Int)
Sets the acceleration curve for every child animation in the set. Defaults to a linear interpolation.
See http://developer.android.com/reference/android/view/animation/Interpolator.html for further details.
This setting is ignored if you set ShareInterpolator to false when you initialized the set.
Interpolator: one of the INTERPOLATOR constants.
The Cycle Interpolator cannot be used with this function because the parameter is mandatory.
SetInterpolatorWithParam (Interpolator As Int, Param As Float)
Sets the acceleration curve for every child animation in the set. Defaults to a linear interpolation.
See http://developer.android.com/reference/android/view/animation/Interpolator.html for further details.
This setting is ignored if you set ShareInterpolator to false when you initialized the set.
Interpolator: one of the INTERPOLATOR constants.
Param: factor or tension.
The Accelerate/Decelerate Interpolator and the Bounce Interpolator have no parameter.
Start (view As android.view.View)
Plays the added animations together.
StartOffset As Long
Gets/sets when the animation set should begin after the Start function was called (in milliseconds).
Stop (view As android.view.View)
Stops all child animations.
Warning: stopping an animation set does not trigger the AnimationEnd event of the child animations.

ClipDrawable


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  Initialize (Drawable As Object, Gravity As Int, Orientation As Int, StartLevel As Int)

  IsInitialized As Boolean

  Level As Int

  ORIENTATION_HORIZONTAL As Int

  ORIENTATION_VERTICAL As Int

Members description:

Initialize (Drawable As Object, Gravity As Int, Orientation As Int, StartLevel As Int)
Initializes the ClipDrawable.
Drawable: the drawable or bitmap to clip.
Gravity: where to clip within the drawable.
Orientation: one of the two orientation constants (horizontal or vertical).
StartLevel: the initial clipping level.
The drawable is clipped completely and not visible when the level is 0 and fully revealed when the level is 10000.
IsInitialized As Boolean
Level As Int
Gets or sets the clipping level.
The drawable is clipped completely and not visible when the level is 0 and fully revealed when the level is 10000.
ORIENTATION_HORIZONTAL As Int
ORIENTATION_VERTICAL As Int

LayerDrawable


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  ChangeLayer (Index As Int, Layer As Object) As Boolean

  GetDrawable (Index As Int) As android.graphics.drawable.Drawable

  Initialize (Layers() As Object)

  IsInitialized As Boolean

  NumberOfLayers As Int [read only]

  SetAlpha (Index As Int, Value As Int)

Members description:

ChangeLayer (Index As Int, Layer As Object) As Boolean
Changes the layer (drawable or bitmap) at the given index.
Returns True if the layer was replaced or False if the index was not found.
You should invalidate the view displaying the layerdrawable after using this function.
GetDrawable (Index As Int) As android.graphics.drawable.Drawable
Returns the drawable at the specified layer index.
Initialize (Layers() As Object)
Initializes the LayerDrawable.
Layers: an array of drawables (or bitmaps) to draw together.
The element with the largest index will be drawn on top.
IsInitialized As Boolean
NumberOfLayers As Int [read only]
Returns the number of layers contained within the LayerDrawable.
SetAlpha (Index As Int, Value As Int)
Sets the opacity of the layer at the given index.
You should invalidate the view displaying the layerdrawable after using this function.
Value: Value of the alpha channel between 0 and 255.

TransitionDrawable


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  CrossFadeEnabled As Boolean

  Initialize (Layer1 As Object, Layer2 As Object)

  IsInitialized As Boolean

  ReverseTransition_2To1 (Duration As Int)

  ShowFirstLayer

  StartTransition_1To2 (Duration As Int)

Members description:

CrossFadeEnabled As Boolean
Gets/sets whether the cross fade is enabled for this transition.
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.
Initialize (Layer1 As Object, Layer2 As Object)
Initializes the TransitionDrawable.
Layer1: the drawable (or bitmap) to display first.
Layer2: the drawable (or bitmap) displayed after a transition.
IsInitialized As Boolean
ReverseTransition_2To1 (Duration As Int)
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.
Duration: the duration to use if no transition is running.
ShowFirstLayer
Shows only the first layer.
StartTransition_1To2 (Duration As Int)
Starts the cross-fade sequence to display the second layer on top of the first layer.
Duration: the length of the transition in milliseconds.
Top