Fresco and fresco
Use Fresco
// Permission
<uses-permission android:name="android.permission.INTERNET"/>
/Add compile 'com. facebook. fresco: 0.12.0 '// Add compile 'com. facebook. fresco: animated-base-support: 0.12.0 '// you can add compile 'com. facebook. fresco: animated-gif: 0.12.0 '// supports WebP (static graph + animation) and compile 'com. facebook. fresco: animated-webp: 0.12.0 'compile 'com. facebook. fresco: webpsupport: 0.12.0 '// only supports WebP static graphs. You need to add compile 'com. facebook. fresco: webpsupport: 0.12.0 'Layout MainActivity method import android.net. uri; import android. support. v7.app. appCompatActivity; import android. OS. bundle; import android. view. view; import com. facebook. drawee. backends. pipeline. fresco; import com. facebook. drawee. view. simpleDraweeView; public class MainActivity extends AppCompatActivity {private SimpleDraweeView my_img_view; @ Override protected void onCreate (Bundle savedInstanceState) {Fre Sco. initialize (this); super. onCreate (savedInstanceState); setContentView (R. layout. activity_main); my_img_view = (SimpleDraweeView) findViewById (R. id. my_img_view); Uri uri = Uri. parse ("https://m.360buyimg.com/n12/jfs/t7768/184/1153704394/148460/f42e1432/599a930fN8a85626b.jpg! Q70.jpg "); my_img_view.setImageURI (uri );}}