microsoft / surface-duo-sdk-samples-kotlin Goto Github PK
View Code? Open in Web Editor NEWSurface Duo SDK Samples in Kotlin
Home Page: https://learn.microsoft.com/dual-screen/
License: MIT License
Surface Duo SDK Samples in Kotlin
Home Page: https://learn.microsoft.com/dual-screen/
License: MIT License
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.
Android 11 introduced a hinge angle sensor type to represent a sensor that measures the angle between two integral parts of a device.
The current sample doesn't use that but a different approach. A nice upgrade could be to update the sample and use this new sensor type.
More info:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.