Surface Duo Blog

Foldables at Google I/O

Hello Android developers! You've probably seen some of the awesome announcements made this week at Google I/O, a virtual event that brought the Google developer community together. This post covers some of our favorites, from sessions like What’s new in foldables, tablets, and large screens, and Prepare your app for large screens...

Foldable SlidingPaneLayout

Hello Android developers! Last week Google announced an update to the SlidingPaneLayout component preview, which is being enhanced for dual-screen and foldable devices. UPDATE: on September 1st, 2021 Google released beta01. The API has not changed from the instructions in this post, the updated implementation line is: As ...

Ensuring code quality with CI/CD

Hello Android developers, One of the best ways for us to help you enhance your apps is with samples, and it’s important that our samples are high quality and work as intended. Building dual-screen libraries and samples As you may already know, specifically for Android development (through its SDK and using Kotlin/Java...

Jetpack Compose foldable and dual-screen development

Hi Android developers, We talked about using Jetpack Compose, the new Android UI toolkit for Microsoft Surface Duo development in a previous blog post. Now, Jetpack Compose is in beta. Combined with the use of Jetpack Window Manager, Jetpack Compose is more flexible for developing apps for dual-screen devices and even easier to ...

New Android pen and ink control preview

Hello Android developers, In a previous post, we shared code to handle pen events including pressure, orientation, and button presses on the pen. Today’s post introduces a preview of a new pen and inking control that you can easily add to your Android apps to get pen (and touch) support without a lot of custom code. (image...

Developer tip: launch on adjacent screen

Hello Android developers, Last year we blogged about bringing your existing apps to the Microsoft Surface Duo, which included a variety of suggestions from simple tweaks to a set of user-experience design patterns that you could use to enhance your applications’ UI. Today I’m going to re-visit one of those dual-screen ...

Dual-screen library update with Jetpack Window Manager

Hello Kotlin and Java developers, We’re excited to announce version 1.0.0-beta1 of our dual-screen libraries for Microsoft Surface Duo, which integrates Google’s Jetpack Window Manager support. We’ve made the underlying device interface swappable, so you can continue to use the existing Display Mask API as long as you wish and...