Sample demonstrating how to load large bitmaps efficiently off the main UI thread,
caching bitmaps (both in memory and on disk), managing bitmap memory and displaying
bitmaps in UI elements such as ViewPager
and ListView
/GridView
.
This is a sample application for the Android Training class Displaying Bitmaps Efficiently, partially ported to Ceylon.
It demonstrates how to load large bitmaps efficiently off the main UI thread, caching
bitmaps (both in memory and on disk), managing bitmap memory and displaying bitmaps
in UI elements such as ViewPager
and ListView
/GridView
.
It also demonstrates how to have an Android project containing a mix of Ceylon code alongside Java code, using the Ceylon Gradle plugin for Android. (We've deliberately left some of the original Java code alone, in order to demonstrate this.)
- Ceylon 1.3.2
- Android SDK 25
- Android Build Tools v25.0.2
- Android Support Repository
Make sure you have Ceylon IDE for IntelliJ installed as a plugin in Android Studio.
This sample uses the Gradle build system. To build this project, use the gradlew build
command or use 'Import Project' in Android Studio.