zalewski.se
03/13/2022, 8:58 AMCard(
shape = RoundedCornerShape(8.dp),
elevation = 10.dp
)
Colton Idle
03/13/2022, 4:11 PMzalewski.se
03/13/2022, 4:19 PMColumn(
modifier = modifier
.fillMaxSize()
.background(Color.White)
) {
Card(
shape = RoundedCornerShape(8.dp),
elevation = 10.dp
)
}
Colton Idle
03/13/2022, 4:25 PMzalewski.se
03/13/2022, 5:34 PMMaterialTheme
but result was the same. Although there is a custom theme set in `AndroidManifest`… 💭Colton Idle
03/13/2022, 5:35 PMzalewski.se
03/13/2022, 10:13 PMAndroidManifest
, I just need to find out which flag is it 😬. I’m quite surprised that wrapping the composable into MaterialTheme
doesn’t override it thoughzalewski.se
03/13/2022, 10:19 PM* The opacity of the final ambient shadow is a function of the shadow caster height, the
* alpha channel of the [ambientShadowColor] (typically opaque), and the
* [android.R.attr.ambientShadowAlpha] theme attribute.
Colton Idle
03/14/2022, 1:21 PMChris Sinco [G]
03/15/2022, 8:54 AMzalewski.se
03/17/2022, 6:13 PMambientShadowAlpha
was changed is described here. I have quite a mix feeling now about adopting Compose to an existing app (especially really big ones), relaying on an XML based settings in such way can be really hard to find later on.