SplitRule
public class SplitRule extends EmbeddingRule
SplitPairRule |
Split configuration rules for activity pairs. |
SplitPinRule |
Split configuration rules for pinning an |
SplitPlaceholderRule |
Configuration rules for split placeholders. |
Split configuration rules for activities that are launched to side in a split. Define the visual properties of the split. Can be set either via RuleController.setRules or via RuleController.addRule. The rules are always applied only to activities that will be started after the rules were set.
Note that regardless of whether the minimal requirements (minWidthDp, minHeightDp and minSmallestWidthDp) are met or not, the callback set in SplitController.setSplitAttributesCalculator will still be called for the rule if the calculator is registered via SplitController.setSplitAttributesCalculator. Whether this SplitRule's minimum requirements are satisfied is dispatched in SplitAttributesCalculatorParams.areDefaultConstraintsSatisfied instead. The width and height could be verified in the SplitAttributes calculator callback as the sample linked below shows.
It is useful if this SplitRule is supported to split the parent container in different directions with different device states.
import androidx.window.embedding.EmbeddingAnimationBackground <span class="devsi