Amir_RVLayoutAnimation
-
Functions:
- Alpha (fromAlpha As Float, toAlpha As Float)
- Custom (anim As android.view.animation.Animation)
- Resource (Animation As String)
Load Animation from Resource
- Rotate (fromDegrees As Float, toDegrees As Float)
- Rotate2 (fromDegrees As Float, toDegrees As Float, pivotX As Float, pivotY As Float)
- Rotate3 (fromDegrees As Float, toDegrees As Float, pivotXtype As Int, pivotXvalue As Float, pivotYtype As Int, pivotYvalue As Float)
- Scale (fromX As Float, toX As Float, fromY As Float, toY As Float)
- Scale2 (fromX As Float, toX As Float, fromY As Float, toY As Float, pivotX As Float, pivotY As Float)
- Scale3 (fromX As Float, toX As Float, fromY As Float, toY As Float, pivotXtype As Int, pivotXvalue As Float, pivotYtype As Int, pivotYvalue As Float)
- Translate (fromXDelta As Float, toXDelta As Float, fromYDelta As Float, toYDelta As Float)
- Translate2 (fromXtype As Int, fromXvalue As Float, toXtype As Int, toXvalue As Float, fromYtype As Int, fromYvalue As Float, toYtype As Int, toYvalue As Float)
-
Functions:
- Accelerate As Amir_RVAnimation
- Accelerate2 (factor As Float) As Amir_RVAnimation
- AccelerateDecelerate As Amir_RVAnimation
- Anticipate As Amir_RVAnimation
- Anticipate2 (tension As Float) As Amir_RVAnimation
- AnticipateOvershoot As Amir_RVAnimation
- AnticipateOvershoot2 (tension As Float) As Amir_RVAnimation
- AnticipateOvershoot3 (tension As Float, ExtraTension As Float) As Amir_RVAnimation
- Bounce As Amir_RVAnimation
- Cycle (cycles As Float) As Amir_RVAnimation
- Decelerate As Amir_RVAnimation
- Decelerate2 (factor As Float) As Amir_RVAnimation
- Linear As Amir_RVAnimation
- Overshoot As Amir_RVAnimation
- Overshoot2 (tension As Float) As Amir_RVAnimation
- Path (controlX As Float, controlY As Float) As Amir_RVAnimation
- Path2 (controlX As Float, controlY As Float, controlX2 As Float, controlY2 As Float) As Amir_RVAnimation
-
Functions:
- Accelerate As Amir_RVAnimationSet
- Accelerate2 (factor As Float) As Amir_RVAnimationSet
- AccelerateDecelerate As Amir_RVAnimationSet
- Anticipate As Amir_RVAnimationSet
- Anticipate2 (tension As Float) As Amir_RVAnimationSet
- AnticipateOvershoot As Amir_RVAnimationSet
- AnticipateOvershoot2 (tension As Float) As Amir_RVAnimationSet
- AnticipateOvershoot3 (tension As Float, ExtraTension As Float) As Amir_RVAnimationSet
- Bounce As Amir_RVAnimationSet
- Cycle (cycles As Float) As Amir_RVAnimationSet
- Decelerate As Amir_RVAnimationSet
- Decelerate2 (factor As Float) As Amir_RVAnimationSet
- Linear As Amir_RVAnimationSet
- Overshoot As Amir_RVAnimationSet
- Overshoot2 (tension As Float) As Amir_RVAnimationSet
- Path (controlX As Float, controlY As Float) As Amir_RVAnimationSet
- Path2 (controlX As Float, controlY As Float, controlX2 As Float, controlY2 As Float) As Amir_RVAnimationSet
-
Functions:
- Accelerate As Amir_RVGridLayoutAnimation
- Accelerate2 (factor As Float) As Amir_RVGridLayoutAnimation
- AccelerateDecelerate As Amir_RVGridLayoutAnimation
- Anticipate As Amir_RVGridLayoutAnimation
- Anticipate2 (tension As Float) As Amir_RVGridLayoutAnimation
- AnticipateOvershoot As Amir_RVGridLayoutAnimation
- AnticipateOvershoot2 (tension As Float) As Amir_RVGridLayoutAnimation
- AnticipateOvershoot3 (tension As Float, ExtraTension As Float) As Amir_RVGridLayoutAnimation
- Bounce As Amir_RVGridLayoutAnimation
- Cycle (cycles As Float) As Amir_RVGridLayoutAnimation
- Decelerate As Amir_RVGridLayoutAnimation
- Decelerate2 (factor As Float) As Amir_RVGridLayoutAnimation
- Linear As Amir_RVGridLayoutAnimation
- Overshoot As Amir_RVGridLayoutAnimation
- Overshoot2 (tension As Float) As Amir_RVGridLayoutAnimation
- Path (controlX As Float, controlY As Float) As Amir_RVGridLayoutAnimation
- Path2 (controlX As Float, controlY As Float, controlX2 As Float, controlY2 As Float) As Amir_RVGridLayoutAnimation
-
Functions:
- Accelerate As Amir_RVLinearLayoutAnimation
- Accelerate2 (factor As Float) As Amir_RVLinearLayoutAnimation
- AccelerateDecelerate As Amir_RVLinearLayoutAnimation
- Anticipate As Amir_RVLinearLayoutAnimation
- Anticipate2 (tension As Float) As Amir_RVLinearLayoutAnimation
- AnticipateOvershoot As Amir_RVLinearLayoutAnimation
- AnticipateOvershoot2 (tension As Float) As Amir_RVLinearLayoutAnimation
- AnticipateOvershoot3 (tension As Float, ExtraTension As Float) As Amir_RVLinearLayoutAnimation
- Bounce As Amir_RVLinearLayoutAnimation
- Cycle (cycles As Float) As Amir_RVLinearLayoutAnimation
- Decelerate As Amir_RVLinearLayoutAnimation
- Decelerate2 (factor As Float) As Amir_RVLinearLayoutAnimation
- Linear As Amir_RVLinearLayoutAnimation
- Overshoot As Amir_RVLinearLayoutAnimation
- Overshoot2 (tension As Float) As Amir_RVLinearLayoutAnimation
- Path (controlX As Float, controlY As Float) As Amir_RVLinearLayoutAnimation
- Path2 (controlX As Float, controlY As Float, controlX2 As Float, controlY2 As Float) As Amir_RVLinearLayoutAnimation
Amir_RVAnimation
Amir RecyclerView Plugin
Make Animations For Set To RecyclerView Layout
Events:
- onAnimationEnd
- onAnimationRepeat
- onAnimationStart
Fields:
- ABSOLUTE As Int
The specified dimension is an absolute number of pixels.
- INFINITE As Int
Repeat the animation indefinitely.
- RELATIVE_TO_PARENT As Int
The specified dimension holds a float and should be multiplied by the
height or width of the parent of the object being animated.
- RELATIVE_TO_SELF As Int
The specified dimension holds a float and should be multiplied by the
height or width of the object being animated.
- RESTART As Int
When the animation reaches the end and the repeat count is INFINTE_REPEAT
or a positive value, the animation restarts from the beginning.
- REVERSE As Int
When the animation reaches the end and the repeat count is INFINTE_REPEAT
or a positive value, the animation plays backward (and then forward again).
- START_ON_FIRST_FRAME As Int
Can be used as the start time to indicate the start time should be the current
time when getTransformation(long, Transformation) is invoked for the
first animation frame. This can is useful for short animations.
- ZORDER_BOTTOM As Int
Requests that the content being animated be forced under all other
content for the duration of the animation.
- ZORDER_NORMAL As Int
Requests that the content being animated be kept in its current Z
order.
- ZORDER_TOP As Int
Requests that the content being animated be forced on top of all other
content for the duration of the animation.
Functions:
- BackgroundColor (bg As Int) As Amir_RVAnimation
- DetachWallpape (DetachWallpape As Boolean) As Amir_RVAnimation
If detachWallpaper is true, and this is a window animation of a window
that has a wallpaper background, then the window will be detached from
the wallpaper while it runs. That is, the animation will only be applied
to the window, and the wallpaper behind it will remain static.
- Duration (durationMillis As Long) As Amir_RVAnimation
How long this animation should last. The duration cannot be negative.
- FillAfter (FillAfter As Boolean) As Amir_RVAnimation
If fillAfter is true, the transformation that this animation performed
will persist when it is finished. Defaults to false if not set.
Note that this applies when using an {@link
android.view.animation.AnimationSet AnimationSet} to chain
animations. The transformation is not applied before the AnimationSet
itself starts.
- FillBefore (FillBefore As Boolean) As Amir_RVAnimation
If fillBefore is true, this animation will apply its transformation
before the start time of the animation. Defaults to true if not set.
Note that this applies when using an {@link
android.view.animation.AnimationSet AnimationSet} to chain
animations. The transformation is not applied before the AnimationSet
itself starts.
- FillEnabled (FillEnabled As Boolean) As Amir_RVAnimation
If fillEnabled is true, the animation will apply the value of fillBefore and
fillAfter. Otherwise, fillBefore and fillAfter are ignored and the animation
transformation is always applied.
- Initializer (EventName As String) As com.aghajari.rvplugins.Amir_RVAnimation.AnimationTypes
- Interpolator As com.aghajari.rvplugins.Amir_RVAnimation.Interpolators
Sets the interpolator used to interpolate the delays between the
children.
- IsInitialized As Boolean
- RepeatCount (RepeatCount As Int) As Amir_RVAnimation
Sets how many times the animation should be repeated. If the repeat
count is 0, the animation is never repeated. If the repeat count is
greater than 0 or INFINITE, the repeat mode will be taken
into account. The repeat count is 0 by default.
- RepeatMode (RepeatMode As Int) As Amir_RVAnimation
Defines what this animation should do when it reaches the end. This
setting is applied only when the repeat count is either greater than
0 or INFINITE. Defaults to RESTART.
- RestrictDuration (durationMillis As Long) As Amir_RVAnimation
Ensure that the duration that this animation will run is not longer
than durationMillis. In addition to adjusting the duration
itself, this ensures that the repeat count also will not make it run
longer than the given time.
- StartOffset (StartOffset As Long) As Amir_RVAnimation
When this animation should start relative to the start time. This is most
useful when composing complex animations using an AnimationSet
where some of the animations components start at different times.
- StartTime (startTimeMillis As Long) As Amir_RVAnimation
When this animation should start. When the start time is set to
START_ON_FIRST_FRAME
startTimeMillis: the start time in milliseconds
- ZAdjustment (zAdjustment As Int) As Amir_RVAnimation
Set the Z ordering mode to use while running the animation.
zAdjustment: The desired mode, one of ZORDER_NORMAL,
ZORDER_TOP, or ZORDER_BOTTOM.
Amir_RVAnimationSet
Amir RecyclerView Plugin
Represents a group of Animations that should be played together.
The transformation of each individual animation are composed
together into a single transform.
If AnimationSet sets any properties that its children also set
(for example, duration or fillBefore), the values of AnimationSet
override the child values.
Fields:
- ABSOLUTE As Int
The specified dimension is an absolute number of pixels.
- INFINITE As Int
Repeat the animation indefinitely.
- RELATIVE_TO_PARENT As Int
The specified dimension holds a float and should be multiplied by the
height or width of the parent of the object being animated.
- RELATIVE_TO_SELF As Int
The specified dimension holds a float and should be multiplied by the
height or width of the object being animated.
- RESTART As Int
When the animation reaches the end and the repeat count is INFINTE_REPEAT
or a positive value, the animation restarts from the beginning.
- REVERSE As Int
When the animation reaches the end and the repeat count is INFINTE_REPEAT
or a positive value, the animation plays backward (and then forward again).
- START_ON_FIRST_FRAME As Int
Can be used as the start time to indicate the start time should be the current
time when getTransformation(long, Transformation) is invoked for the
first animation frame. This can is useful for short animations.
- ZORDER_BOTTOM As Int
Requests that the content being animated be forced under all other
content for the duration of the animation.
- ZORDER_NORMAL As Int
Requests that the content being animated be kept in its current Z
order.
- ZORDER_TOP As Int
Requests that the content being animated be forced on top of all other
content for the duration of the animation.
Functions:
- AddAnimation (Animation As android.view.animation.Animation)
Add a child animation to this animation set.
The transforms of the child animations are applied in the order
that they were added
- BackgroundColor (bg As Int) As Amir_RVAnimationSet
- DetachWallpape (DetachWallpape As Boolean) As Amir_RVAnimationSet
If detachWallpaper is true, and this is a window animation of a window
that has a wallpaper background, then the window will be detached from
the wallpaper while it runs. That is, the animation will only be applied
to the window, and the wallpaper behind it will remain static.
- Duration (durationMillis As Long) As Amir_RVAnimationSet
How long this animation should last. The duration cannot be negative.
- FillAfter (FillAfter As Boolean) As Amir_RVAnimationSet
If fillAfter is true, the transformation that this animation performed
will persist when it is finished. Defaults to false if not set.
Note that this applies when using an {@link
android.view.animation.AnimationSet AnimationSet} to chain
animations. The transformation is not applied before the AnimationSet
itself starts.
- FillBefore (FillBefore As Boolean) As Amir_RVAnimationSet
If fillBefore is true, this animation will apply its transformation
before the start time of the animation. Defaults to true if not set.
Note that this applies when using an {@link
android.view.animation.AnimationSet AnimationSet} to chain
animations. The transformation is not applied before the AnimationSet
itself starts.
- FillEnabled (FillEnabled As Boolean) As Amir_RVAnimationSet
If fillEnabled is true, the animation will apply the value of fillBefore and
fillAfter. Otherwise, fillBefore and fillAfter are ignored and the animation
transformation is always applied.
- Initialize (shareInterpolator As Boolean)
Constructor to use when building an AnimationSet from code
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 As com.aghajari.rvplugins.Amir_RVAnimationSet.Interpolators
Sets the interpolator used to interpolate the delays between the
children.
- IsInitialized As Boolean
- RepeatCount (RepeatCount As Int) As Amir_RVAnimationSet
Sets how many times the animation should be repeated. If the repeat
count is 0, the animation is never repeated. If the repeat count is
greater than 0 or INFINITE, the repeat mode will be taken
into account. The repeat count is 0 by default.
- RepeatMode (RepeatMode As Int) As Amir_RVAnimationSet
Defines what this animation should do when it reaches the end. This
setting is applied only when the repeat count is either greater than
0 or INFINITE. Defaults to RESTART.
- RestrictDuration (durationMillis As Long) As Amir_RVAnimationSet
Ensure that the duration that this animation will run is not longer
than durationMillis. In addition to adjusting the duration
itself, this ensures that the repeat count also will not make it run
longer than the given time.
- StartOffset (StartOffset As Long) As Amir_RVAnimationSet
When this animation should start relative to the start time. This is most
useful when composing complex animations using an AnimationSet
where some of the animations components start at different times.
- StartTime (startTimeMillis As Long) As Amir_RVAnimationSet
When this animation should start. When the start time is set to
START_ON_FIRST_FRAME
startTimeMillis: the start time in milliseconds
- ZAdjustment (zAdjustment As Int) As Amir_RVAnimationSet
Set the Z ordering mode to use while running the animation.
zAdjustment: The desired mode, one of ZORDER_NORMAL,
ZORDER_TOP, or ZORDER_BOTTOM.
Properties:
- Animations As java.util.List [read only]
return All the child animations in this AnimationSet. Note that
this may include other AnimationSets, which are not expanded.
Amir_RVGridLayoutAnimation
Amir_RecyclerView Plugin
add created Animation to recycler view with
grid layout type
Fields:
- DIRECTION_BOTTOM_TO_TOP As Int
Animates the children starting from the bottom of the grid to the top.
- DIRECTION_HORIZONTAL_MASK As Int
Bitmask used to retrieve the horizontal component of the direction.
- DIRECTION_LEFT_TO_RIGHT As Int
Animates the children starting from the left of the grid to the right.
- DIRECTION_RIGHT_TO_LEFT As Int
Animates the children starting from the right of the grid to the left.
- DIRECTION_TOP_TO_BOTTOM As Int
Animates the children starting from the top of the grid to the bottom.
- DIRECTION_VERTICAL_MASK As Int
Bitmask used to retrieve the vertical component of the direction.
- ORDER_NORMAL As Int
Distributes the animation delays in the order in which view were added
to their view group.
- ORDER_RANDOM As Int
Randomly distributes the animation delays.
- ORDER_REVERSE As Int
Distributes the animation delays in the reverse order in which view were
added to their view group.
- PRIORITY_COLUMN As Int
Columns are animated first.
- PRIORITY_NONE As Int
Rows and columns are animated at the same time.
- PRIORITY_ROW As Int
Rows are animated first.
Functions:
- Build
Set layout animation to RecyclerView
- ColumnDelay (ColumnDelay As Float) As Amir_RVGridLayoutAnimation
Sets the delay, as a fraction of the animation duration, by which the
children's animations are offset from one column to the other.
- Delay (delay As Float) As Amir_RVGridLayoutAnimation
Sets the delay, as a fraction of the animation duration, by which the
children's animations are offset. The general formula is:
- Direction (Direction As Int) As Amir_RVGridLayoutAnimation
Sets the direction of the animation. The direction is expressed as an
integer containing a horizontal and vertical component.
- DirectionPriority (directionPriority As Int) As Amir_RVGridLayoutAnimation
Specifies the direction priority of the animation. For instance,
PRIORITY_COLUMN will give priority to columns: the animation
will first play on the column, then on the rows.Z
- Initialize (Animation As android.view.animation.Animation, Recycler As com.aghajari.rv.Amir_RecyclerView)
- Initialize2 (Animation As String, Recycler As com.aghajari.rv.Amir_RecyclerView)
Initialize and load animation from resource
- Interpolator As com.aghajari.rvplugins.Amir_RVGridLayoutAnimation.Interpolators
Sets the interpolator used to interpolate the delays between the
children.
- NotifiData As Amir_RVGridLayoutAnimation
Notifi Data Adapter
- Order (order As Int) As Amir_RVGridLayoutAnimation
Sets the order used to compute the delay of each child's animation.
- RequestLayout As Amir_RVGridLayoutAnimation
Request Layout
- RowDelay (rowDelay As Float) As Amir_RVGridLayoutAnimation
Sets the delay, as a fraction of the animation duration, by which the
children's animations are offset from one row to the other.
- ScheduleLayoutAnimation As Amir_RVGridLayoutAnimation
Schedules the layout animation to be played after the next layout pass
of this view group. This can be used to restart the layout animation
when the content of the view group changes or when the activity is
paused and resumed.
Properties:
- Animation As android.view.animation.Animation [read only]
Amir_RVLinearLayoutAnimation
Amir_RecyclerView Plugin
add created Animation to recycler view with
linear layout type
Fields:
- ORDER_NORMAL As Int
Distributes the animation delays in the order in which view were added
to their view group.
- ORDER_RANDOM As Int
Randomly distributes the animation delays.
- ORDER_REVERSE As Int
Distributes the animation delays in the reverse order in which view were
added to their view group.
Functions:
- Build
Set layout animation to RecyclerView
- Delay (delay As Float) As Amir_RVLinearLayoutAnimation
Sets the delay, as a fraction of the animation duration, by which the
children's animations are offset. The general formula is:
- Initialize (Animation As android.view.animation.Animation, Recycler As com.aghajari.rv.Amir_RecyclerView)
- Initialize2 (Animation As String, Recycler As com.aghajari.rv.Amir_RecyclerView)
Initialize and load animation from resource
- Interpolator As com.aghajari.rvplugins.Amir_RVLinearLayoutAnimation.Interpolators
Sets the interpolator used to interpolate the delays between the
children.
- NotifiData As Amir_RVLinearLayoutAnimation
Notifi Data Adapter
- Order (order As Int) As Amir_RVLinearLayoutAnimation
Sets the order used to compute the delay of each child's animation.
- RequestLayout As Amir_RVLinearLayoutAnimation
Request Layout
- ScheduleLayoutAnimation As Amir_RVLinearLayoutAnimation
Schedules the layout animation to be played after the next layout pass
of this view group. This can be used to restart the layout animation
when the content of the view group changes or when the activity is
paused and resumed.
Properties:
- Animation As android.view.animation.Animation [read only]
Author: AmirHosseinAghajari