Home | History | Annotate | only in /external/glide
Up to higher level directory
NameDateSize
.gitignore05-Aug-2015475
.travis.yml05-Aug-2015155
Android.mk05-Aug-2015660
build.gradle05-Aug-2015208
gradle/05-Aug-2015
gradle.properties05-Aug-201523
gradlew05-Aug-20155K
gradlew.bat05-Aug-20152.3K
install_maven_dependencies/05-Aug-2015
library/05-Aug-2015
LICENSE05-Aug-20151.5K
pom.xml05-Aug-20151.9K
README.md05-Aug-20152.4K
settings.gradle05-Aug-201579
third_party/05-Aug-2015

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