Anton Popov
07/22/2021, 12:38 PMshadowElevation
(only for shadows), translationX
, translationY
steelahhh
07/22/2021, 1:48 PMAnton Popov
07/22/2021, 2:09 PMthe drawing order for the children of the same layout parentIt does not visually elevate a composable above other composables in background 😔
Anton Popov
07/22/2021, 2:11 PMAdam Powell
07/22/2021, 4:59 PMshadowElevation
is what you're looking forDominaezzz
07/22/2021, 5:25 PMAnton Popov
07/22/2021, 7:28 PMSergey Y.
07/22/2021, 8:00 PMSergey Y.
07/22/2021, 8:00 PMAnton Popov
07/22/2021, 8:40 PMtranslationX = -getTranslation(angle.first, maxTranslation),
translationY = -getTranslation(angle.second, maxTranslation),
in graphicsLayer
, but somehow manages to get clear separation between layers in z direction. How this happens?Anton Popov
07/22/2021, 8:44 PMtranslationX = alternating,
translationY = alternating,
(just slowly alternating between 0 and maxTranslation
)
var alternating by remember { mutableStateOf(0f) }
LaunchedEffect(key1 = Unit) {
var round = true
while (true) {
if (round) alternating += 1 else alternating -= 1
if (alternating == maxTranslation || alternating == 0f) round = !round
delay(5)
}
}
I get this. But front layer also moves diagonally in xy plane, which is unwanted.