![]() ![]() When this happens we’ll receive a WindowLayoutInfo object which describes the current state. Currently, this focuses on foldables, and we get callbacks when the fold state changes. This library allows us to subscribe to changes indicating changes to the device state. The main enabler for doing this is the relatively new Jetpack WindowManager library. In this second article we’ll explore how we ca achieve that. This can lead to a much nicer user experience on those devices because the fold line is a natural dividing point on the screen. Specifically, it can align the split point with the hinge or fold line of the device. ![]() While that achieved the basic list /detail UI it doesn’t do as much as we get from SlidingPaneLayout which also supports foldables. Then how we can dynamically apply them based on the screen width. Previously we saw how we can get implement a split or two-page layout.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |