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

[Question] Placeholder #72

Closed
Midnayt opened this issue Sep 15, 2020 · 2 comments
Closed

[Question] Placeholder #72

Midnayt opened this issue Sep 15, 2020 · 2 comments

Comments

@Midnayt
Copy link

Midnayt commented Sep 15, 2020

How to set placeholder when image loading in progress?

@jonathanpeppers
Copy link
Owner

First thought: how would you do it in Xamarin.Forms when not using glidex? Maybe we need to add a feature?

Glide has a way to do this:

http://bumptech.github.io/glide/doc/options.html#transitionoptions

Right now, you could implement an IGlideHandler to customize the calls to Glide. There isn't much documentation on this, but you can get the general idea here: #41

There is an example of randomizing each image's alpha value. You should be able to call other Glide APIs there. The only weird thing is this will apply to every image in your app, so you might need an attached property to turn it on or off per ImageSource.

@jonathanpeppers
Copy link
Owner

Let me know if you have other questions, thanks!

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

No branches or pull requests

2 participants