2

I am familiar with fitcenter and centercrop in glide. But is it possible to make something like this image

enter image description here

Any ideas to achieve it?

Zoe
  • 27,060
  • 21
  • 118
  • 148
jomin v george
  • 1,299
  • 11
  • 26
  • 1
    I think they are 2 different imageviews, stacked one on top of other. The bottom one loads an blurred/thumb version of the main image which is displayed in high resolution on the top imageview – Amit Barjatya Nov 04 '17 at 18:19
  • ya we can achieve it like that. But 2 ImageViews are needed. – jomin v george Nov 04 '17 at 18:35

1 Answers1

5

Use two imageViews. One smaller and above the other. Then use this library and use this piece of code for the background image

Glide.with(this).load(R.drawable.demo)
  .apply(bitmapTransform(new BlurTransformation(25)))
  .into((ImageView) findViewById(R.id.image));
Damia Fuentes
  • 5,308
  • 6
  • 33
  • 65