mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
TEST: Added a new transformation with glide to CenterCrop() images in ImageViews
This commit is contained in:
parent
4f5822eeca
commit
7e772eb6c0
20 changed files with 47 additions and 25 deletions
|
|
@ -14,6 +14,7 @@ import androidx.navigation.Navigation;
|
|||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
|
||||
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
|
||||
import com.cappielloantonio.play.App;
|
||||
import com.cappielloantonio.play.R;
|
||||
|
|
@ -84,7 +85,7 @@ public class ArtistSimilarAdapter extends RecyclerView.Adapter<ArtistSimilarAdap
|
|||
artist.getImageUrl()
|
||||
)
|
||||
.build()
|
||||
.transform(new RoundedCorners(CustomGlideRequest.CORNER_RADIUS))
|
||||
.transform(new CenterCrop(), new RoundedCorners(CustomGlideRequest.CORNER_RADIUS))
|
||||
.into(cover);
|
||||
|
||||
artistRepository.getArtistFullInfo(artist.getId()).removeObserver(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue