Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGlideHandler implementation #41

Merged
merged 1 commit into from
Jun 22, 2019
Merged

IGlideHandler implementation #41

merged 1 commit into from
Jun 22, 2019

Conversation

jonathanpeppers
Copy link
Owner

Fixes: #28

This is my initial idea that allows developers to implement their own
calls to Glide in a simple way.

For example RandomAlphaHandler creates a SimpleTarget subclass
that sets a random alpha value on the BitmapDrawable.

When subclassing SimpleTarget, you can also override:

  • OnLoadStarted
  • OnLoadFailed

This should give developers flexibility for what happens if images
fail to load, etc.

TODO:

  • Let someone else try out my API?
  • Write a few other IGlideHandler examples

Fixes: #28

This is my initial idea that allows developers to implement their own
calls to Glide in a simple way.

For example `RandomAlphaHandler` creates a `SimpleTarget` subclass
that sets a random alpha value on the `BitmapDrawable`.

When subclassing `SimpleTarget`, you can also override:

* `OnLoadStarted`
* `OnLoadFailed`

This should give developers flexibility for what happens if images
fail to load, etc.

TODO:
* Let someone else try out my API?
* Write a few other `IGlideHandler` examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request Listener support for android.
1 participant