-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Improve Glide usage for Image Loading on Android #5198
Merged
Changes from 10 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
00f0cb8
Make Glide load into imageview directly
Redth c4e4654
Refactor glide usage and implement listener
Redth 4997314
Allow image views to autosize
Redth fa5d222
New test image
Redth 25e6e4d
Fix image size of Glide loaded font images
Redth e4d04f3
Add glide ImageLoader to android aar project
Redth d45b862
Use the helpers from the android aar
Redth 450b0d4
Use autoscaling property from Font
Redth fea8794
Merge image callbacks into one
Redth a0aa7d8
Add some benchmark tests
Redth d51a391
More work on benchmark
Redth ed8a475
Remove unused helper methods
Redth 793fa6d
Simplify callback
Redth a25bb65
Use custom glide targets instead of listeners
Redth 87a7073
Benchmark uses non-resource/asset file
Redth 81a45d0
Check if streams are empty
Redth 98eaeee
Clean up tests
Redth c206387
Add glide model loader / factor for InputStream
Redth 6e71547
Refactor android platform code project
Redth 87a0bf6
Fix a couple tests
Redth e5d4e3b
Update interop project
Redth 76b13de
Rework glide interop / image service
Redth fc99372
Fix more tests
Redth 7c163ac
Clear pending operations for image view targets
Redth c1d1fd7
Only load if we are supposed to apply the source
Redth 8d55dec
Merge branch 'main' into glidier
Redth fb5707a
Fix rebase
Redth 7c720bf
More rebase fixes
Redth 6cc0ad1
Fix solution filters
Redth e787af4
Throw if request is cancelled in test
Redth 77e048b
Do not always clear first
Redth 35f2851
Run callback clear on ui thread
Redth 1450bda
Invoke clear on main thread in load calls too
Redth f43bfc1
Fix refactor
Redth 6baaa73
Fix api call
Redth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 3 additions & 0 deletions
3
src/Controls/samples/Controls.Sample/Resources/Images/cog.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-keep public class * extends com.bumptech.glide.module.AppGlideModule | ||
-keep public class * extends com.bumptech.glide.module.LibraryGlideModule | ||
-keep class com.bumptech.glide.GeneratedAppGlideModuleImpl | ||
-keep class com.microsoft.maui.MauiGlideModule |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can make requests here, but if we just leave the default, Glide will try and make the imageview bigger which seems to play well with layouts so far...