Shared Element Transition and Image Quality Using Glide

152
October 21, 2018, at 05:20 AM

I am performing a shared transition between two ImageViews. The first image is a resized cover art on a RecyclerView row and the second image (in a detail activity) is a large version of the same image. Just to clarify I am using the same content URI for both of them. Also, I am using cropCenter on both on the ImageViews xml.

I am facing two visual issues. When I return to the caller activity (with the RecyclerView) and the transition is over, the image returns to its lower quality version creating a blur like effect for a fraction of a second. I am guessing it is because the image in the RecyclerView is downscaled.

I am facing another issue also when the image finishes its transition, in that the image would move a pixel to the right. This only happens when the cover is not a perfect square.

I have used the override option with source target and that fixed both issues:

.override(Target.SIZE_ORIGINAL)

Though, that resulted in the images for the RecyclerView being loaded a lot going up and down.

I wonder if I there is anything I can do to fix the issues.

Thanks for your time.

Rent Charter Buses Company
READ ALSO
How do i restrict my admin from viewing a normal user page using php?

How do i restrict my admin from viewing a normal user page using php?

I have a page for users named gamephp, where they can update their profile etc

119
Send access token to the user after login php

Send access token to the user after login php

I'm working to add some functions to an user management class I've made and that I'm using in various projectI've decided to use some static functions of a class to check, verify and delete the $_SESSION when user login, are logged in and when logout

167
Where is this function argument coming from?

Where is this function argument coming from?

In the below code, I can't figure out where the {getFirebase} argument is coming from that is being passed in to the line that reads

153
Toggle plus minus signs in BS 4.x Card Header

Toggle plus minus signs in BS 4.x Card Header

I am trying to learn BootstrapI have the code referenced below

153