I have a link which contains an image. Usually with fresco
I can parse the link and set the image. But, in this case I need to set that image as an icon to ActionBar
.
I've tried this, but it must be drawable
and as I said I only have the link to the image.
((MainActivity) getActivity()).getSupportActionBar().setIcon(ContextCompat.getDrawable(getActivity(), R.drawable.rose_logo));
I access the ActionBar
this way because I need it in fragment
.