Code Monkey home page Code Monkey logo

surface-duo-sdk-samples-kotlin's Introduction

page_type name languages products description urlFragment
sample
Surface Duo - Kotlin SDK samples
kotlin
surface-duo
Samples showing how to use the Surface Duo SDK to achieve dual-screen user interface patterns.
all

Surface Duo SDK samples in Kotlin

This repo contains samples for dual-screen Surface Duo SDK. These samples demonstrate dual-screen controls and user interface patterns.

Kotlin samples CI

Get Started

To learn how to load your app on to emulator, and to use it, see the documentation at docs.microsoft.com/dual-screen.

Related links

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

License

Copyright (c) Microsoft Corporation.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

surface-duo-sdk-samples-kotlin's People

Contributors

ancirja-m avatar bimiron avatar cesarvaliente avatar conceptdev avatar guymerin avatar joyl1216 avatar khalp avatar microsoft-github-operations[bot] avatar microsoftopensource avatar soalb-m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

surface-duo-sdk-samples-kotlin's Issues

VerticalViewPager on TwoPage Sample Unresponsive

All horizontal swiping is fine for the TwoPage sample, but when in the dual landscape screen configuration, the vertical scrolling can miss some of the swiping events and is overall not as smooth as swiping through pages horizontally. This bug is shown in the demonstration here.

This problem is apparently amplified (vertical scrolling is even less responsive) when using Jetpack Window Manager instead of the Surface Duo SDK to manage the layout. This is not confirmed, but in my app's case, the only real difference was that it used JWM instead of the Duo SDK and only the vertical scroll seemed to perform worse.

To reproduce, simply enter the dual landscape screen configuration and swipe up and down through the pages. The issue is independent of any prior configurations, as I was able to reproduce it starting from every configuration/orientation before switching to dual landscape. I even tried going straight to dual landscape and the problem still occurred.

[Picture-in-Picture] Create new sample that highlights this feature

Currently this repository doesn't have a sample that highlights Picture-in-Picture feature.
Since Surface Duo is a dual-screen device, it could be interesting implement a basic sample app that highlights this feature and takes advantage of having two screens side by side.
It could be that are some exceptions that can affect the behavior of Picture-in-Picture and cannot be done (e.g. maybe is not possible to move the small picture to the adjacent screen, so this exercise is also a r&d one).

More info: https://developer.android.com/guide/topics/ui/picture-in-picture

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.