4 ms·
If you're lazy like me, you can use something like GreenDroid (https://github.com/cyrilmottier/GreenDroid https://github.com/cyrilmottier/GreenDroid) or Droid-F
by mattgreenrocks 15y ago
If you're lazy like me, you can use something like GreenDroid (https://github.com/cyrilmottier/GreenDroid https://github.com/cyrilmottier/GreenDroid) or Droid-Fu's WebImageView (https://github.com/kaeppler/droid-fu https://github.com/kaeppler/droid-fu) to do this for you.
- shareme 15y agothey have the same problem of not being kind to device orientation events
- mattgreenrocks 15y agoYou mean if you change from horizontal to vertical? Droid-Fu uses a two-level cache so it should handle this case relatively well: the bitmaps are weak-referenced and kept around if RAM permits, otherwise the disk is consulted. IMO, Android handles the whole orientation thing poorly. Destroying an entire activity because the orientation changed violates the principle of least surprise.