Skip to content

Set of libraries that help you to build dual screen experiences for Microsoft Surface Duo

License

Notifications You must be signed in to change notification settings

soalb-m/surface-duo-sdk

 
 

Repository files navigation

Surface Duo SDK

This repo contains the source code for the Microsoft Surface Duo SDK.

Please read the code of conduct and contribution guidelines.

Add to your project

  1. Make sure you have jcenter() repository in your top level build.gradle file:

    allprojects {
        repositories {
            google()
            jcenter()
         }
    }
  2. Add dependencies to the module-level build.gradle file (current version may be different from what's shown here). There are multiple libraries available - you should always reference ScreenManager plus any additional libraries you plan to use:

    ScreenManager

    If you want to choose the version that uses Display Mask API, then you should add the following lines to your gradle file.

    implementation "com.microsoft.device.dualscreen:screenmanager-displaymask:1.0.0-beta1"

    or if you want to choose the version that uses Window Manager API, then you should add the following lines.

    implementation "com.microsoft.device.dualscreen:screenmanager-windowmanager:1.0.0-beta1"

    Bottom navigation

    implementation "com.microsoft.device.dualscreen:bottomnavigation:1.0.0-beta1"
    implementation "com.microsoft.device.dualscreen:screenmanager-windowmanager:1.0.0-beta1"
    // Or, if you want to use the screen manager with display mask version
    // implementation "com.microsoft.device.dualscreen:screenmanager-displaymask:1.0.0-beta1"

    Fragments handler

    implementation "com.microsoft.device.dualscreen:fragmentshandler:1.0.0-beta1"
    implementation "com.microsoft.device.dualscreen:screenmanager-windowmanager:1.0.0-beta1"
    // Or, if you want to use the screen manager with display mask version
    // implementation "com.microsoft.device.dualscreen:screenmanager-displaymask:1.0.0-beta1"

    Layouts

    implementation "com.microsoft.device.dualscreen:layouts:1.0.0-beta1"
    implementation "com.microsoft.device.dualscreen:screenmanager-windowmanager:1.0.0-beta1"
    // Or, if you want to use the screen manager with display mask version
    // implementation "com.microsoft.device.dualscreen:screenmanager-displaymask:1.0.0-beta1"

    Tabs

    implementation "com.microsoft.device.dualscreen:tabs:1.0.0-beta1"
    implementation "com.microsoft.device.dualscreen:screenmanager-windowmanager:1.0.0-beta1"
    // Or, if you want to use the screen manager with display mask version
    // implementation "com.microsoft.device.dualscreen:screenmanager-displaymask:1.0.0-beta1"

    RecyclerView

    implementation "com.microsoft.device.dualscreen:recyclerview:1.0.0-beta1"
    implementation "com.microsoft.device.dualscreen:screenmanager-windowmanager:1.0.0-beta1"
    // Or, if you want to use the screen manager with display mask version
    // implementation "com.microsoft.device.dualscreen:screenmanager-displaymask:1.0.0-beta1"

Useful links

Samples that utilize this SDK

Other Surface Duo developer samples

About

Set of libraries that help you to build dual screen experiences for Microsoft Surface Duo

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 58.6%
  • Kotlin 41.4%