Home | History | Annotate | only in /external/glide
Up to higher level directory
NameDateSize
.gitignore16-Dec-2014475
.travis.yml16-Dec-2014155
Android.mk16-Dec-2014660
build.gradle16-Dec-2014208
gradle/16-Dec-2014
gradle.properties16-Dec-201423
gradlew16-Dec-20145K
gradlew.bat16-Dec-20142.3K
install_maven_dependencies/16-Dec-2014
library/16-Dec-2014
LICENSE16-Dec-20141.5K
pom.xml16-Dec-20141.9K
README.md16-Dec-20142.4K
settings.gradle16-Dec-201479
third_party/16-Dec-2014

README.md

      1 Glide
      2 =====
      3 Glide is fast and efficient image loading library for Android that wraps image downloading, resizing, memory and disk caching, and bitmap recycling into one simple and easy to use interface. By default, Glide includes an implementation for fetching images over http based on Google's Volley project for fast, parallelized network operations on Android.
      4 
      5 Glide's primary focus is on making scrolling any kind of a list of images as smooth and fast as possible, but Glide is also effective for almost any case where you need to fetch, resize, and display a remote image.
      6 
      7 How do I use Glide?
      8 -------------------
      9 You can download a .jar from GitHub's release page for the Glide project. The wiki also has pages on a variety of topics and the javadocs for version 2.0+ will also be available via a link there as well.
     10 
     11 Simple use cases will look something like this:
     12 
     13 ```Java
     14 
     15 //For a simple view:
     16 @Override
     17 public void onCreate(Bundle savedInstanceState) {
     18     ...
     19 
     20     ImageView imageView = (ImageView) findViewById(R.id.my_image_view);
     21 
     22     Glide.load("http://goo.gl/h8qOq7").into(imageView);
     23 }
     24 
     25 //For a list:
     26 @Override
     27 public View getView(int position, View recycled, ViewGroup container) {
     28     final ImageView myImageView;
     29     if (recycled == null) {
     30         myImageView = (ImageView) inflater.inflate(R.layout.my_image_view,
     31                 container, false);
     32     } else {
     33         myImageView = (ImageView) recycled;
     34     }
     35 
     36     String url = myUrls.get(position);
     37 
     38     Glide.load(url)
     39         .centerCrop()
     40         .placeholder(R.drawable.loading_spinner)
     41         .animate(R.anim.fade_in)
     42         .into(myImageView);
     43 
     44     return myImageView;
     45 }
     46 
     47 ```
     48 
     49 Status
     50 ------
     51 Glide has been in use at Bump for about six months in two of our Android apps at version 1.0. Version 2.0 is the first public release with a stable api. Comments/bugs/questions/pull requests welcome!
     52 
     53 Build
     54 ------
     55 Building Glide with gradle is fairly straight forward:
     56 
     57 ```
     58 cd glide/library
     59 ./gradlew build
     60 ```
     61 
     62 Note: Make sure your Android SDK has the Android Support Repository installed, and that your `$ANDROID_HOME` environment variable is pointing at the SDK.
     63 
     64 Thanks
     65 ------
     66 Thanks to the Android project and Jake Wharton for the [disk cache implementation](https://github.com/JakeWharton/DiskLruCache) included with Glide. Thanks also to the Android team for [Volley](https://android.googlesource.com/platform/frameworks/volley/).
     67 
     68 Author
     69 ------
     70 Sam Judd - @samajudd
     71