Skip to content

gavinking/DisplayingBitmaps

Repository files navigation

DisplayingBitmaps sample for Ceylon on Android

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.

Introduction

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.)

Pre-requisites

  • 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.

Screenshots

Screenshot Screenshot

Getting Started

This sample uses the Gradle build system. To build this project, use the gradlew build command or use 'Import Project' in Android Studio.

About

Port of Android demo app to Ceylon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published