Sample Android application using the Surface Duo SDK and Jetpack Window Manager for foldable and dual-screen devices
Перейти к файлу
Cristian Verdes 76577bf9cb
Update README.md
2024-08-29 08:29:52 +03:00
.github PR and issue templates (#51) 2022-03-31 16:04:50 +02:00
app Fix WebView issues from DevMode in app version 1.0.10 (#73) 2023-07-12 12:20:43 +03:00
gradle/wrapper Catalog Jetpack Compose refactor (#57) 2022-06-14 20:33:04 +03:00
screenshots Add order history tab (#59) 2022-08-11 14:37:28 -07:00
.gitignore Created empty Android project 2021-01-28 19:15:52 +02:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2021-01-27 09:33:08 -08:00
LICENSE Initial LICENSE commit 2021-01-27 09:33:09 -08:00
NOTICE.md Merge into main without navigation library (#29) 2021-11-01 16:13:50 +02:00
README.md Update README.md 2024-08-29 08:29:52 +03:00
SECURITY.md Merge into main without navigation library (#29) 2021-11-01 16:13:50 +02:00
SUPPORT.md Update Readme.md and Support.md files to include links to other repos, the CI badge and how to contact us 2021-02-09 13:38:13 +02:00
build.gradle Improve dependency notice generation (#48) 2022-03-31 15:31:58 +03:00
dependencies.gradle Update version code and name, dependency lockfile and webview link fix (#72) 2023-07-11 16:32:25 +03:00
google_play_badge.png Updated README and added icons for each buildType (#40) 2021-12-10 10:49:03 +02:00
gradle.properties Created empty Android project 2021-01-28 19:15:52 +02:00
gradlew Created empty Android project 2021-01-28 19:15:52 +02:00
gradlew.bat Created empty Android project 2021-01-28 19:15:52 +02:00
ktlint.gradle Merge into main without navigation library (#29) 2021-11-01 16:13:50 +02:00
settings.gradle Merge into main without navigation library (#29) 2021-11-01 16:13:50 +02:00

README.md

Dual Screen Experience Example

The application provides developers and designers with real world, working examples of how to make use of the dual-screen/foldable form factor in different ways. It enables an end-to-end experience using a prescribed user scenario, centered around the needs of a travelling salesperson who visits various fictitious stores which are interested in buying the salespersons fictitious products. It helps the salesperson select and navigate to multiple predetermined customer locations in a city, assist the salesperson's tasks in various ways during the visit to each potential client, and create a report of each visit.

When spanned across the folding feature, a Developer Mode option appears in the toolbar which shows more details regarding each screen - the code behind it, the user interface patterns it implements and the dual-screen controls it uses.

The application is built using the Foldable Navigation Component, BottomNavigationView, RecyclerView, Ink SDK, SnackbarContainer, Testing Kit.

Dual Screen Experience Example build

Getting Started

To learn how to load apps on the Surface Duo emulator, see the documentation, and follow the blog.

Screenshots

Blog post Video
Dual-screen reference app Twitch #48: Dual Screen Experience sample app
Dual-screen app design walkthrough Twitch #56: Dual screen app design walkthrough
Accessibility in a dual-screen application Twitch #69: Accessibility on dual screen apps
Dual-screen example adds Jetpack Compose to the experience Twitch #86: Adding Jetpack Compose to existing apps

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 opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsofts Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-partys policies.

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.