Port of Android demo app to Ceylon
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
Application
gradle/wrapper
screenshots
.gitignore
ABOUT.txt
DisplayingBitmaps.iml
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

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.