[android] warnings from Glide for image URLs
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
### Description
I see lots of warnings from Glide, like:
```
[CustomViewTarget] Glide treats LayoutParams.WRAP_CONTENT as a request for an image the size of this device's screen dimensions. If you want to load the original image and are ok with the corresponding memory cost and OOMs (depending on the input size), use .override(Target.SIZE_ORIGINAL). Otherwise, use LayoutParams.MATCH_PARENT, set layout_width and layout_height to fixed dimension, or use .override() with fixed dimensions.
```
It's worth checking if we can change something to make this warning go away, it would help image performance?
If we are indeed doing this on purpose, we should hide the console output?
### Steps to Reproduce
I was testing a `CollectionView` like:
```csharp
const int count = 30;
var list = new List(count);
for (int i = 1; i <= count; i++)
{
list.Add ($"https://images.pokemontcg.io/sm35/{i}_hires.png");
}
_collectionView.ItemsSource = list;
```
```xml
```
### Link to public reproduction project repository
https://github.com/jonathanpeppers/card-effects/tree/2d6492e0f023b4f7f1579fae367368d31a902872
(Use the above commit)
### Version with bug
7.0 Release Candidate 2
### Last version that worked well
Unknown/Other
### Affected platforms
Android
### Affected platform versions
Any Android
### Did you find any workaround?
No
### Relevant log output
_No response_
Contributor guide
Research direction
Start by running the linked card-effects reproduction at commit 2d6492e0f023b4f7f1579fae3e367368d31a902872 with the CollectionView and Image template on Android. Trace the image-loading path used by this example and verify that the Glide warning no longer appears while the collection still displays its images correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- mobile-dev, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100