Picasso load drawable resources from their URI

前端 未结 5 1540
北荒
北荒 2020-11-30 06:46

I have to show a drawable from res into an ImageView. In this app, I\'m using Picasso for some reasons.

In this case, I need t

5条回答
  •  感情败类
    2020-11-30 06:57

    If the images is in your drawable folder then you can just load it.

    Picasso.with(context).load(R.drawable.drawableName).into(imageView);
    

    and picasso will load it no need for an Uri.

提交回复
热议问题