W
W
WhatYouDoing2016-10-02 13:19:55
Java
WhatYouDoing, 2016-10-02 13:19:55

How to display an image in an ImageView?

Hello everyone, I can’t understand how to display a picture received from the Internet, in this case from VK, there is a place where to display a picture

<ImageView
        android:id="@+id/VKuserAvatar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingTop="@dimen/nav_header_vertical_spacing"
        app:srcCompat="@android:drawable/sym_def_app_icon" />

I take it out like this
ImageView userAvatar = (ImageView) findViewById(R.id.VKuserAvatar);
userAvatar.setImageURI(Uri.parse(user.getString("photo_50")));

I'm doing it for the first time, I googled even if it doesn't work out, help mi pliz, thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WhatYouDoing, 2016-10-02
@WhatYouDoing

Connected a third-party library)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question