it opens a new Activity with the image cropped to fill the whole screen. Images are loaded by a simple Glide call:
Now our image is loaded before the transition, but we have this weird glitch at the beginning of Enter Transition and at the end of Exit Transition. We will handle this next.
NEED A SUCCESSFUL TEAM?
We’re 100% office based team with 7-years’ experience
in mobile & web app development
Estimate project
Step#3: Disable transformations
We have this glitch because Glide bulk mobile database tries to optimize image loading. By default, Glide is resizing and trimming images to match the target view. But Android transition framework at transition beginning takes the image from destination view and tries to transform it into the image from source view. We can tell Glide not to optimize images this way:
Let’s start with a simple grid of images.
-
- Posts: 23
- Joined: Mon Dec 23, 2024 3:42 am