Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

replace low-level bitmap handling code with glide #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kmdupr33
Copy link

The code that is in place currently decodes a bitmap on the main thread,
which can cause application responsiveness issues. The code also doesn't
appear to scale down the bitmap in cases where the bitmap is much larger
than the ImageView size. These two issues are described here:
https://developer.android.com/topic/performance/graphics/index.html

It looks like they recommend the use of Glide to handle these problems, so I've replaced
the lower-level code with Glide code. This code may not be correct. I've never
used glide (I typically use Picasso).

The code that is in place currently decodes a bitmap on the main thread,
which can cause application responsiveness issues. The code also doesn't
appear to scale down the bitmap in cases where the bitmap is much larger
than the ImageView size. These two issues are described here:
https://developer.android.com/topic/performance/graphics/index.html

It looks like they recommend the use of Glide to handle these problems, so I've replaced
the lower-level code with Glide code. This code may not be correct. I've never
used glide (I typically use Picasso).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant