Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.76 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.76 KB

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.