Android ImageView replacement which allows image loading from URLs or contact address book, with caching
See the codeSmartImageView is a drop-in replacement for Android's standard ImageView which additionally allows images to be loaded from URLs or the user's contact address book. Images are cached to memory and to disk for super fast loading.
ImageViewSmartImage class is easily extendable to load from other sourcesDownload the latest .jar file from github and place it in your Android app's libs/ folder.
Add a SmartImageView to your activity's xml layout:
<com.loopj.android.image.SmartImageView android:id="@+id/my_image" />
Get a reference to the layout's SmartImageView:
SmartImageView myImage = (SmartImageView) this.findViewById(R.id.my_image);
Load an image into the view from a URL:
myImage.setImageUrl("http://www.awesomeimages.com/myawesomeimage.jpg");
Load an image into the view from the phone's contact address book:
myImage.setImageContact(contactAddressBookId);
Please report any bugs or feature requests on the github issues page for this project here:
https://github.com/loopj/android-smart-image-view/issues
The Android Smart Image View is released under the Android-friendly Apache License, Version 2.0. Read the full license here:
861 followers · starred Mar 2011
978 followers · starred Nov 2013
52 followers · starred Dec 2013
Android ImageView replacement which allows image loading from URLs or contact address book, with caching
See the codeSmartImageView is a drop-in replacement for Android's standard ImageView which additionally allows images to be loaded from URLs or the user's contact address book. Images are cached to memory and to disk for super fast loading.
ImageViewSmartImage class is easily extendable to load from other sourcesDownload the latest .jar file from github and place it in your Android app's libs/ folder.
Add a SmartImageView to your activity's xml layout:
<com.loopj.android.image.SmartImageView android:id="@+id/my_image" />
Get a reference to the layout's SmartImageView:
SmartImageView myImage = (SmartImageView) this.findViewById(R.id.my_image);
Load an image into the view from a URL:
myImage.setImageUrl("http://www.awesomeimages.com/myawesomeimage.jpg");
Load an image into the view from the phone's contact address book:
myImage.setImageContact(contactAddressBookId);
Please report any bugs or feature requests on the github issues page for this project here:
https://github.com/loopj/android-smart-image-view/issues
The Android Smart Image View is released under the Android-friendly Apache License, Version 2.0. Read the full license here:
861 followers · starred Mar 2011
978 followers · starred Nov 2013
52 followers · starred Dec 2013