![]() Jetpack Window Manager: What it provides and how to use it. What foldable devices are, and the differences between the various types available. When you finish the Codelab, you will have learned: To get started, go to the repo on GitHub, clone the repository, and start playing and learning! We will see how to launch a new activity to the adjacent window that can be the adjacent screen on Surface Duo or the adjacent window on devices that use Multi-Window.Īs the perfect companion to the Codelab, we have also created a GitHub Codelab code repository that includes all the samples we are using in this Codelab so you can build and learn directly through the code. Launch an activity to the adjacent window.We will use the existing API to develop a couple of basic apps that implement that functionality so we can see how drag & drop works when using apps side-by-side. ![]() Add drag and drop functionality to your app.In the last section of the Codelab, we will see how we can implement a few small adjustments in our apps so they shine when using on foldable devices. We will also build a very basic app where we will learn how to use Window Manager, and how to use the information it provides in order to adjust an app designed originally for single screen devices to provide a better experience on a foldable device.Įnhance your app with minor and simple adjustments You will learn how to initialize and use Window Manager, such as to retrieve the state (posture) of the device, the type of the device (hinge or hingeless device), and more.įigure 2: A preview of some of the Window Manager’s key-features. In this section we will learn what Jetpack Window Manager is and how you can use it in order to handle the new capabilities foldable provide and take into consideration to develop a fantastic foldable experience for your users. This is the largest section in the Codelab and the most important one. We will also learn about the different postures that foldable devices can have. The first topic covered in the Codelab is what distinguishes dual-screen and foldable devices, and the differences from other single-screen devices.įigure 1: single- and dual-screen foldable devices This post will go through them step-by-step. Once you are inside the Codelab you will see a left-side menu showing the different topics the Codelab covers. You can also search for it using the “foldable” keyword in the main Google Developers Codelabs site. The new dual-screen Codelab is now available online. With that in mind, during the last months we have been working together with Google on developing a new Codelab to help you understand what foldable and dual-screen devices are, how to use Jetpack Window Manager to enhance your apps for use on foldables and dual-screen devices by making just a few small changes. As we have mentioned in previous blog posts, enhancing apps to take advantage of the capabilities that new form factor devices such as Microsoft Surface Duo and other foldable devices provide, can easily be done by following a step-by-step approach.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |