BitmapDrawable deprecated alternative
Try this Once.
In Activity
BitmapDrawable background = new BitmapDrawable(this.getResources(), blurImageBg);
In Fragment
BitmapDrawable background = new BitmapDrawable(getActivity(), blurImageBg);
In Adapter or else
BitmapDrawable background = new BitmapDrawable(context.getResources(), blurImageBg);