CarouselEffect icon indicating copy to clipboard operation
CarouselEffect copied to clipboard

Not exactly an issue but how do I blur the viewpager in the back??

Open PembaTamang opened this issue 5 years ago • 0 comments

I did this :

switch (adapterType)
          {
              case MainActivity.ADAPTER_TYPE_TOP:
Glide.with(context)
                  .load(listItems[position])
                  .into(imageCover);
                  linMain.setBackgroundResource(R.drawable.shadow);

                  break;
              case MainActivity.ADAPTER_TYPE_BOTTOM:
Glide.with(context)
                  .load(listItems[position])
                  .applyDefaultRequestOptions(new RequestOptions().bitmapTransform(new BlurTransformation(20)))
                  .into(imageCover);
                  linMain.setBackgroundResource(0);

                  break;
          }

I realised that its the same image view so the whole thing was being blurred. I made another Adapter inflating another imagview and blurred that, still the entire thing is being blurred. How do I just blur the back imageview???

PembaTamang avatar Nov 21 '18 11:11 PembaTamang