-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
loading
and failure
parameters to GlideImage
These parameters will override equivalent values set via requestBuilderTransform if the parameters are non-null. If the parameters are null, then we'll apply whatever is specified by requestBuilderTransform. I plan to add similar explicit parameters for other values settable via requestBuilderTransform over time with similar override behavior unless someone objects. The `fallback` on `RequestBuilder` is not replicated. Callers can use `failure` or if/else to provide custom behavior for null models. Similarly `loading` is only shown while the request is loading. Unlike `RequestBuilder.placeholder`, `loading` will never be shown after the load fail. `failure` should instead be used to explicitly duplicate the `loading` behavior if that functionality is desired.
- Loading branch information
Showing
13 changed files
with
686 additions
and
100 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
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.