Microsoft Releases Dual-Screen Layout Control Preview for Android Devs

Microsoft has released a preview version of a dual-screen layout control for Java and Kotlin developers targeting Surface Duo.

“The dual-screen layout control and associated helpers will enable you to build dynamic and responsive apps that take advantage of the Microsoft Surface Duo and its two screens,” Microsoft’s Craig Dunn writes.

Windows Intelligence In Your Inbox

Sign up for our new free newsletter to get three time-saving tips each Friday — and get free copies of Paul Thurrott's Windows 11 and Windows 10 Field Guides (normally $9.99) as a special welcome gift!

"*" indicates required fields

This field is for validation purposes and should be left unchanged.

The dual-screen layout control builds on Microsoft’s Display Mask API, which is used on Surface Duo to determine what’s happening in areas of the screens that are not used for displaying your app’s content. It includes three elements:

SurfaceDuoLayout. A control that helps manage single-screen and dual-screen layouts in a flexible way.

SurfaceDuoScreenManager. A way to subscribe to screen mode changes and have your app respond accordingly.

ScreenHelper. Provides information about the screen and hinge to help you position elements in your UI.

SurfaceDuoLayout works like a set of two containers when the app is used in span mode and one container in single-screen mode, Microsoft says. The firm offers sample code in both Java and Kotlin.

Tagged with

Share post

Please check our Community Guidelines before commenting

Conversation 4 comments

  • Ron Diaz

    28 March, 2020 - 8:41 pm

    <p>I’m sure developers are just chomping at the bit to develop custom apps for this hardware… &lt;/s&gt;</p>

    • Paul Thurrott

      Premium Member
      29 March, 2020 - 8:38 am

      lol yes

    • VancouverNinja

      Premium Member
      30 March, 2020 - 2:57 pm

      <blockquote><em><a href="#534722">In reply to Hypnotoad:</a></em></blockquote><p>We are. Entire sales force will be moving to Duo's to increase productivity, reduce reporting efforts, increase customer service, and save time.</p><p><br></p><p>This is nice to see.</p>

      • hansolo

        31 March, 2020 - 8:29 am

        <blockquote><em><a href="#535137">In reply to VancouverNinja:</a></em></blockquote><p>wow are you spoiling their sarcasm and jokes with a serious comment ? :)</p>

Windows Intelligence In Your Inbox

Sign up for our new free newsletter to get three time-saving tips each Friday

"*" indicates required fields

This field is for validation purposes and should be left unchanged.

Thurrott © 2024 Thurrott LLC