mirror of
https://github.com/androidx/media.git
synced 2025-04-29 22:36:54 +08:00
[demo-compose] Even out the weight of Prev/Play/Next buttons
Despite the size being specified as 80 dp, it's important that all the buttons are exactly 1/3 of the Row, even if it means ignoring the size. PiperOrigin-RevId: 751343084
This commit is contained in:
parent
dae5ebb820
commit
f1afa17bf6
@ -44,8 +44,8 @@ internal fun MinimalControls(player: Player, modifier: Modifier = Modifier) {
|
||||
horizontalArrangement = Arrangement.SpaceEvenly,
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
PreviousButton(player, modifierForIconButton)
|
||||
PlayPauseButton(player, modifierForIconButton)
|
||||
NextButton(player, modifierForIconButton)
|
||||
PreviousButton(player, Modifier.weight(1f).then(modifierForIconButton))
|
||||
PlayPauseButton(player, Modifier.weight(1f).then(modifierForIconButton))
|
||||
NextButton(player, Modifier.weight(1f).then(modifierForIconButton))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user