Android Developers
Published in

Android Developers

Illustration by Virginia Poltrack

Suspending over views

How coroutines can make UI programming easier

Android views 💘 callbacks

KTX extension functions

Coroutines to the rescue

suspendCancellableCoroutine

Wait for a view to be laid out

Scope

Waiting for an Animator to finish

Orchestrating the band

By modeling different asynchronous operations as suspend functions, we gain the ability to orchestrate them expressively and concisely.

post.resume()

--

--

Articles on modern tools and resources to help you build experiences that people love, faster and easier, across every Android device.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store