orientation(): Returns if the FoldingFeature width is greater than the height otherwise, returns.occlusionType(): Calculates the occlusion mode to determine if a FoldingFeature occludes a part of the window.isSeparating(): Calculates if a FoldingFeature should be thought of as splitting the window into multiple physical areas that can be seen by users as logically separate.state(): Provides the current posture of the device from a list of defined postures ( FLAT and HALF_OPENED).Its API provides access to important information related to the device: Jetpack WindowManager version 1.0.0 contains the FoldingFeature class that describes a fold in a flexible display or a hinge between two physical display panels. The Jetpack WindowManager library helps application developers support new device form factors and provides a common API surface for various WindowManager features on both old and new platform versions. Postures can be used to display content in different ways.įoldable devices can offer different spanning postures when an app is spanned (displayed) across the whole display region (using all display regions on dual-screen foldable devices).įoldable devices can also offer folded postures, like tabletop mode, so you can have a logical split between the part of the screen that's flat and the part that's tilted towards you, and tent mode, so you can visualize the content as if the device was using a stand gadget. Unlike single screen devices, foldable devices also support different postures. Run two apps side by side, each one on a different display region (using multi-window mode).Run one app in one of the display regions.Like tablets and other single screen mobile devices, foldables can: These devices can be folded as well, but they have two different logical display regions. Dual-screen foldable devices, with two screens joined by a hinge.Users can run multiple apps on the same screen at the same time using multi-window mode. Single-screen foldable devices, with one screen that can be folded.When folded, these devices are often smaller than a common-size tablet, making them more portable and functional.Īt the time of this writing, there are two types of foldable devices: Single screen devices vs foldable devicesįoldable devices offer users a bigger screen and more versatile user interface than previously available in a mobile device. If you use other foldable emulators, you may or may not have to make some changes in the code (mainly Jetpack WindowManager).Ģ. Note: In this codelab we have used the dual screen and the 6.7" Horizontal Fold-in emulators.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |