forked from bumptech/glide
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let animation factories be used for multiple loads
- Loading branch information
Showing
9 changed files
with
101 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ interface DrawableOptions { | |
* | ||
* @see #crossFade(int) | ||
* @see #crossFade(int, int) | ||
* @see #crossFade(android.view.animation.Animation, int) | ||
* | ||
* @return This request builder. | ||
*/ | ||
|
@@ -22,7 +21,6 @@ interface DrawableOptions { | |
* | ||
* @see #crossFade() | ||
* @see #crossFade(int, int) | ||
* @see #crossFade(android.view.animation.Animation, int) | ||
* | ||
* @param duration The duration of the cross fade and initial fade in. | ||
* @return This request builder. | ||
|
@@ -39,21 +37,23 @@ interface DrawableOptions { | |
* @see #crossFade(int) | ||
* @see #crossFade(int, int) | ||
* | ||
* @deprecated If this builder is used for multiple loads, using this method will result in multiple view's being | ||
* asked to start an animation using a single {@link android.view.animation.Animation} object which results in | ||
* views animating repeatedly. Use {@link #crossFade(int, int)}} instead. | ||
* @param animation The Animation to use if no placeholder is set. | ||
* @param duration The duration of the cross fade animation. | ||
* @return This request builder. | ||
*/ | ||
@Deprecated | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sjudd
Author
Owner
|
||
GenericRequestBuilder<?, ?, ?, ?> crossFade(Animation animation, int duration); | ||
|
||
|
||
/** | ||
* Applies a cross fade transformation that des from the placeholder to the loaded | ||
* {@link android.graphics.drawable.Drawable}. If no placeholder is set, the Drawable will instead be animated in | ||
* using the {@link android.view.animation.Animation} loaded from the given animation id. | ||
* | ||
* @see #crossFade() | ||
* @see #crossFade(int) | ||
* @see #crossFade(android.view.animation.Animation, int) | ||
* | ||
* @param animationId The id of the Animation to use if no placeholder is set. | ||
* @param duration The duration of the cross fade animation. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Shouldn't there be a replacement
animate(AnimationFactory)
for custom (code-only) animations?