Android - Set ImageView to URL

前端 未结 3 749
难免孤独
难免孤独 2020-12-09 07:02

I am trying to set an Imageview to a URL.

Below is my code

protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stu         


        
3条回答
  •  心在旅途
    2020-12-09 07:32

    Use Glide

    Implementation 'com.github.bumptech.glide:glide:4.2.0'

    Or

    in java

    Glide.with(getApplicationContext())
                    .load(image)
                    .into(imageView);
    

提交回复
热议问题