All Projects → microsoft → surface-duo-sdk

microsoft / surface-duo-sdk

Licence: MIT License
Set of libraries that help you to build dual screen experiences for Microsoft Surface Duo

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to surface-duo-sdk

surface-duo-sdk-samples-flutter
flutter samples for Surface Duo
Stars: ✭ 33 (-13.16%)
Mutual labels:  surface-duo
surface-duo-compose-samples
This repo contains samples built with Jetpack Compose for the Microsoft Surface Duo.
Stars: ✭ 38 (+0%)
Mutual labels:  surface-duo
surface-duo-sdk-samples
Samples for Surface Duo SDK
Stars: ✭ 47 (+23.68%)
Mutual labels:  surface-duo
app-xamarintv
Xamarin.Forms app demonstrating the dual-screen device capability for neo and duo devices
Stars: ✭ 41 (+7.89%)
Mutual labels:  surface-duo
surface-duo-sdk-xamarin-samples
Xamarin Samples for Surface Duo SDK
Stars: ✭ 58 (+52.63%)
Mutual labels:  surface-duo
multi screen layout
A collection of Flutter Widgets that make multi screen user experiences easy to build
Stars: ✭ 75 (+97.37%)
Mutual labels:  surface-duo

Surface Duo SDK

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

Please read the code of conduct and contribution guidelines.

Getting Started

When importing the code into Android Studio, use the surface-duo-sdk folder as the base directory of the project. This lets you access the sdk source code and run the sdk samples from within the same project.

Add to your project

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

    allprojects {
        repositories {
            google()
            mavenCentral()
         }
    }
  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 - for some of them you should 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-beta4"

    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-beta4"

    Bottom navigation

    implementation "com.microsoft.device.dualscreen:bottomnavigation:1.0.0-beta5"

    Fragments handler

    implementation "com.microsoft.device.dualscreen:fragmentshandler:1.0.0-beta5"

    Layouts

    implementation "com.microsoft.device.dualscreen:layouts:1.0.0-beta9"

    Tabs

    implementation "com.microsoft.device.dualscreen:tabs:1.0.0-beta5"

    RecyclerView

    implementation "com.microsoft.device.dualscreen:recyclerview:1.0.0-beta6"

    Ink

    implementation "com.microsoft.device:ink:1.0.0-alpha4"

    Foldable Navigation Component

    def nav_version = "1.0.0-alpha3"
    
    // Java language implementation
    implementation "com.microsoft.device.dualscreen:navigation-fragment:$nav_version"
    implementation "com.microsoft.device.dualscreen:navigation-ui:$nav_version"
    
    // Kotlin
    implementation "com.microsoft.device.dualscreen:navigation-fragment-ktx:$nav_version"
    implementation "com.microsoft.device.dualscreen:navigation-ui-ktx:$nav_version"

    SnackbarContainer

    implementation "com.microsoft.device.dualscreen:snackbar:1.0.0-alpha1"

    Testing

    implementation "com.microsoft.device.dualscreen.testing:testing-kotlin:1.0.0-alpha2"

Useful links

Samples that utilize this SDK

Other Surface Duo developer samples

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].