1. 26 1月, 2015 1 次提交
  2. 25 1月, 2015 1 次提交
  3. 23 1月, 2015 1 次提交
  4. 22 1月, 2015 2 次提交
  5. 21 1月, 2015 3 次提交
  6. 10 1月, 2015 2 次提交
  7. 30 12月, 2014 1 次提交
  8. 27 12月, 2014 3 次提交
    • S
      Allow initializing Glide on background threads. · fad970a0
      Sam Judd 提交于
      Fixes #295.
      fad970a0
    • S
      Fix a javadoc import error in ViewTarget. · cf831783
      Sam Judd 提交于
      cf831783
    • S
      Avoid overflowing read buffer decoding Bitmaps. · a84f6d1c
      Sam Judd 提交于
      Fixes #283.
      
      We use BitmapFactory.Options#inJustDecodeBounds to
      decode the width and height of images before
      decoding the full image so that we can downsample
      large images to avoid memory pressure. To do so,
      we use mark/reset on a buffered InputStream. To
      handle images with large headers, we set a large
      (currently 5mb) mark limit. However, there's
      always the chance that that limit is insufficient
      even with a well formatted image and a bug
      free decoder. Since downsampling is typically an
      optimization, if such a failure occurs we still
      want to decode the full image, even if we can't
      obtain the dimensions. By enforcing we don't read
      beyond our limit, we ensure that the header read
      fails recoverably, so that the full image can
      still be decoded.
      a84f6d1c
  9. 22 12月, 2014 1 次提交
  10. 21 12月, 2014 6 次提交
  11. 10 12月, 2014 1 次提交
  12. 09 12月, 2014 1 次提交
  13. 02 12月, 2014 1 次提交
  14. 24 11月, 2014 2 次提交
  15. 22 11月, 2014 1 次提交
  16. 21 11月, 2014 3 次提交
  17. 20 11月, 2014 4 次提交
  18. 18 11月, 2014 5 次提交
    • S
      Only set size once in ViewPreloadSizeProvider. · 28a34b61
      Sam Judd 提交于
      28a34b61
    • S
      b095b9c8
    • D
    • D
      Split interface to provide the size seperatly. Change interface on... · 26651f07
      david 提交于
      Split interface to provide the size seperatly. Change interface on `PreloadModelProvider` so preload items will requested one by one.
       - introduce new interface `PreloadSizeProvider`
       - change `PreloadModelProvider` preload items will requested one by one.
       - adapt Tests
       - adapt Samples
       - add two sample implementation for `PreloadSizeProvider`
            - `FixPreloadSizeProvider` to provide a size with a fixed width and height
            - `ViewPreloadSizeProvider` provide a size request from a given view using a `OnPreDrawListener`
      26651f07
    • D
      Use Interface instead of abstract ListPreloader · 636df990
      david 提交于
      In your examples the ListAdapter and the final ListPreloader are
      strongly connected. Using an Interface will remove this strong
      connection.
      
      Using an interface that an Adapter can implement has the following
      advantages:
      1. the dimensions don´t must be passed to the ListPreloader while the Adapter has the first access to the dimensions of the ImageView
      2. you don´t have to pass the items to the ListPreloader, while the
      Adapter already has the newest set of items (e.g.: CursorAdapter)
      3. in most cases the ListAdapter already has an RequestBuilder, so
      you don´t have to pass them twice
      4. you get rid of an extra class (ListPrelaoder) you have to implement
      636df990
  19. 16 11月, 2014 1 次提交