Hi im using Glide to load image from my drawable folder and all works fine, this is my code :
Glide.with(this).load(R.drawable.my_drawable_image_name).into(myImageView);
i'm wondering if there is a way to load the image just by name , something like :
Glide.with(this).load(my_drawable_image_name).into(myImageView);
because i want to get the image name dynamically ,for example from a database...
do you have any suggestion about that? thanks in advance.
Use Uri.
Try this:
Call
getImage
method for getDrawable
using Name only.