Answer the question
In order to leave comments, you need to log in
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" />
ImageView userAvatar = (ImageView) findViewById(R.id.VKuserAvatar);
userAvatar.setImageURI(Uri.parse(user.getString("photo_50")));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question