Package com.google.accompanist.adaptive

Types

FoldAwareConfiguration
Link copied to clipboard
value class FoldAwareConfiguration
The configuration for which type of folds for a TwoPane to automatically avoid.
SplitResult
Link copied to clipboard
class SplitResult(gapOrientation: Orientation, gapBounds: Rect)
Returns the specification for where to place a split in TwoPane as a result of TwoPaneStrategy.calculateSplitResult
TwoPaneStrategy
Link copied to clipboard
fun fun interface TwoPaneStrategy
A strategy for configuring the TwoPane component, that is responsible for the meta-data corresponding to the arrangement of the two panes of the layout.

Functions

calculateDisplayFeatures
Link copied to clipboard
fun calculateDisplayFeatures(activity: Activity): List<DisplayFeature>
Calculates the list of DisplayFeatures from the given activity.
HorizontalTwoPaneStrategy
Link copied to clipboard
fun HorizontalTwoPaneStrategy(splitFraction: Float, gapWidth: Dp = 0.dp): TwoPaneStrategy
Returns a TwoPaneStrategy that will place the slots horizontally.
fun HorizontalTwoPaneStrategy(splitOffset: Dp, offsetFromStart: Boolean = true, gapWidth: Dp = 0.dp): TwoPaneStrategy
Returns a TwoPaneStrategy that will place the slots horizontally.
TwoPane
Link copied to clipboard
fun TwoPane(first: @Composable() () -> Unit, second: @Composable() () -> Unit, strategy: TwoPaneStrategy, displayFeatures: List<DisplayFeature>, modifier: Modifier = Modifier, foldAwareConfiguration: FoldAwareConfiguration = FoldAwareConfiguration.AllFolds)
A layout that places two different pieces of content defined by the first and second slots where the arrangement, sizes and separation behaviour is controlled by TwoPaneStrategy.
VerticalTwoPaneStrategy
Link copied to clipboard
fun VerticalTwoPaneStrategy(splitFraction: Float, gapHeight: Dp = 0.dp): TwoPaneStrategy
Returns a TwoPaneStrategy that will place the slots horizontally.
fun VerticalTwoPaneStrategy(splitOffset: Dp, offsetFromTop: Boolean = true, gapHeight: Dp = 0.dp): TwoPaneStrategy
Returns a TwoPaneStrategy that will place the slots horizontally.