I just want to know how to display the image from an URL by using a bitmap and an AsyncTask in a Fragment - not in an Activity.
Asked
Active
Viewed 116 times
-5
-
use glide or piccaso for load image which loads image fast – Anand Savjani Jan 02 '17 at 06:56
-
please add what you done till to achieve this! – Rucha Bhatt Joshi Jan 02 '17 at 06:58
-
Please [edit] your post to add the details. – Bhargav Rao Jan 02 '17 at 08:05
-
1Possible duplicate of [implement AsyncTask in Fragment android](http://stackoverflow.com/questions/18558084/implement-asynctask-in-fragment-android) – Chebyr Jan 02 '17 at 08:51
1 Answers
0
Use the Piccaso for load image more faster
Picasso.with(context)
.load(image url here)
.resize(50, 50)
.centerCrop()
.into(imageView)
refer this link
hope this helps.

Pratik Gondil
- 689
- 1
- 6
- 17