This is a sample app that shows how resource qualifiers are used on Surface Duo devices. The sample purpose is also to be a as a playground to experiment with Bazel to build and deploy the app.
- In the terminal, go inside the project's folder (e.g. /foo/bar/qualifiers-bazel-sample).
- To build the app, type in the terminal
bazel build //src/main:app
. - To deploy/install the app in your device/emulator, type
bazel mobile-install //src/main:app
.
If you need to clean the project after a previous build, type bazel clean
.
The app will show different layouts
and strings
depending on the device/emulator you are using and how the app is displayed (single screen mode or spanned).
- Providing resources.
- Surface Duo dimensions.
- Surface Duo resource qualifiers.
- Surface Duo emulator. Download it now! :-)
- Build an Android app (Java).
- Build an Android app (Kotlin).
- Build an Android app (Kotlin) another example.
- Kotlin releases to update
rules_kotlin_compiler_release
in theworkspace
. - Rules JVM external to update
rules_jvm_external
in theworkspace
. - Rules Kotlin to update the
rules_kotlin
in theworkspace
. - Rules Android. Abandoned? Not needed to build our sample.
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.
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.
Images located in /res
folder are taken from Microsoft Paint 3D. You can download and install the app from the Microsoft Store.