I'm using Fresco in a project, and I need to get the drawable resource of the image downloaded with it.
It's for the leanback BackgroundManager. It needs a drawable for change the background, but the image I'm getting is on the cloud.
I,ve seen examples with Glide, but no clue for Fresco. Any tips?
Glide.with(getActivity())
.load(uri)
.into(new SimpleTarget<GlideDrawable>(width, height) {
@Override
public void onResourceReady(GlideDrawable resource,
GlideAnimation<? super GlideDrawable>
glideAnimation) {
mBackgroundManager.setDrawable(resource);
}
});