I am using ImageView for display ProfileImage but User's Image Comming from URL. Is there any way to load Image from URL Very fast? How can I load Image from URL in ImageView?
- 6 years ago
Glide is a quick and productive open source media administration and picture stacking structure for Android that wraps media deciphering, memory and circle storing, and asset pooling into a straightforward and simple to utilize interface.
ImageView
dimensionsfit()
.
You can download a jar from GitHub's releases page. Or use Gradle: repositories { mavenCentral() maven { url 'https://maven.google.com' } } dependencies { compile 'com.github.bumptech.glide:glide:3.7.0' } There is some error with new Version of Glide : 4.2.0 (NOT WORKING) --------------------------------------------------------- Glide.with(context) .load("http://qna.vbagetech.com/assets/images/logo.png") .override(100, 200) .fitCenter() // scale to fit entire image within ImageView .into(ivImg);
compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1' compile 'jp.wasabeef:glide-transformations:2.0.2'Effects
Blur:
Glide.with(this) .load("http://qna.vbagetech.com/assets/images/logo.png") .bitmapTransform(new BlurTransformation(context)) .into(ivImg);
Multiple transforms:
Glide.with(this) .load("http://qna.vbagetech.com/assets/images/logo.png") .bitmapTransform(new BlurTransformation(context, 25), new CropCircleTransformation(context)) .into(ivImg);
Hot Questions