![]() ![]() ![]() In order to use Jetpack WindowManager, you have to add the dependency in the adle file for your app or module: app/adle dependencies "Īs we can see above, we get an instance of WindowMetricsCalculator through its companion function getOrCreate(). Note: The final version of the codelab is available on GitHub: Declare dependencies ![]() You can leave all the parameters as their default. Using the WindowInfoTracker interface you can access windowLayoutInfo() to collect a Flow of WindowLayoutInfo that contains all the available DisplayFeatures.Ĭreate a new project and select the "Empty Activity" template:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |