Stay organized with collections
Save and categorize content based on your preferences.
class SplitPinRule : SplitRule
Split configuration rules for pinning an ActivityStack. Define how the pinned ActivityStack should be displayed side-by-side with the other ActivityStack.
Summary
Public properties |
Boolean |
Whether this rule should be sticky.
|
Inherited properties |
| From androidx.window.embedding.EmbeddingRule
|
From androidx.window.embedding.SplitRule
SplitAttributes |
The default SplitAttributes to apply on the activity containers pair when the host task bounds satisfy minWidthDp, minHeightDp, minSmallestWidthDp, maxAspectRatioInPortrait and maxAspectRatioInLandscape requirements.
|
EmbeddingAspectRatio |
The largest value of the aspect ratio, expressed as width / height in decimal form, of the parent window bounds in landscape when the split should be used.
|
EmbeddingAspectRatio |
The largest value of the aspect ratio, expressed as height / width in decimal form, of the parent window bounds in portrait when the split should be used.
|
Int |
The smallest value of height of the parent task window when the split should be used, in DP.
|
Int |
The smallest value of the smallest possible width of the parent task window in any rotation when the split should be used, in DP.
|
Int |
The smallest value of width of the parent task window when the split should be used, in DP.
|
|
Public properties
val isSticky: Boolean
Whether this rule should be sticky. If the value is false, this rule be removed whenever the pinned ActivityStack is unpinned. Set to true if the rule should be applied whenever once again possible (e.g. the host Task bounds satisfies the size and aspect ratio requirements).
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[]]