![]() ![]() Added SplitAttributes calculator functions to customize split layouts:.Note: The getInstance() methods of ActivityEmbeddingController and RuleController also have a Context parameter. The getInstance() method now has a Context parameter.Deprecated isSplitSupported() method and replaced with splitSupportStatus property to provide more detailed information about why the split feature is not available.Removed the following APIs and replaced their functionality with RuleController APIs:.Moved isActivityEmbedded() to ActivityEmbeddingController.Refactored APIs to the following modules:.Added tag field for identification of split rules.See SplitRule for properties that use the constants. Lets you specify when splits are enabled based on the parent window’s aspect ratio. Added class to define enum-like behavior constants related to display aspect ratio.Added class to define the split layout.parseRules() - Parses rules from XML rule definitions.clearRules() - Removes all registered rules. ![]() setRules() - Establishes a collection of rules.removeRule() - Removes a rule from the collection of registered rules.addRule() - Adds a rule or updates the rule that has the same tag.Includes the following APIs to replace APIs in SplitController:.Added class for operations related to the EmbeddingRule class and subclasses.Includes isActivityEmbedded() to replace the API in SplitController.Added class for operations related to the Activity or ActivityStack classes.Added as a boolean property of the tag in the app manifest.PROPERTY_ACTIVITY_EMBEDDING_SPLITS_ENABLED Added a tag to rules so that developers can identify and manage specific rules. Changed pixels units to display-independent pixels (dp). Added the EmbeddingAspectRatio class to set a minimum ratio for applying activity embedding rules. Added the SplitAttributesclass to describe embedding splits. ![]() Refactored SplitController to be more focused on split properties extracted split rule APIs to RuleController and activity embedding APIs to ActivityEmbeddingController. tl drĪdded a manifest setting so you can inform the system your app has implemented activity embedding. We started with experimental APIs in 1.0.0 and are promoting them ultimately to stable in 1.1.0. The 1.1.0-beta01 release augments and refactors the APIs to provide greater versatility, capability, and control in managing task window splits. Add the 1.1.0-beta01 dependency to your app, follow the migration steps below (if you’re already using a previous version of the library), and let us know what you think! Activity embeddingĪctivity embedding enables you to optimize your multi-activity apps for large screens. ![]() We need your feedback so we can make WindowManager work best for you. The beta adds an assortment of new features and capabilities, which are ready for testing and early adoption today! The 1.1.0-beta01 release of Jetpack WindowManager continues the library’s steady progress toward stable release of version 1.1.0. Posted by Jon Eckenrode, Technical Writer, Software Engineering * Get a BitmapDrawable from a local file that is scaled down */ public static int PixelsToDp(Activity context, int px) Source Link DocumentRetrieve the window manager for showing custom windows. Prototype public WindowManager getWindowManager() IntroductionIn this page you can find the example usage for android.app Activity getWindowManager. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |