Colton Idle
10/20/2021, 10:05 AMColton Idle
10/20/2021, 10:06 AMBox(modifier = Modifier.background(Color.White).height(200.dp).width(100.dp)) {
Image(
painterResource(R.drawable.stick_figure),
contentDescription = null,
modifier = Modifier.height(100.dp),
contentScale = ContentScale.FillBounds,
colorFilter = ColorFilter.tint(Color.Black))
Box(
modifier =
Modifier.height(150.dp)
.width(100.dp)
.background(Color(0xE6FFF2CC))
.align(BottomCenter)) {
Text(text = "Something Cool", Modifier.align(Center), color = Color.Black)
}
}
Colton Idle
10/20/2021, 10:06 AMColton Idle
10/20/2021, 10:07 AMBox(modifier = Modifier.background(Color.White).height(200.dp).width(100.dp).blur(10.dp)) {
Sarankumar N
10/20/2021, 10:48 AMColton Idle
10/20/2021, 11:04 AMBox(
modifier =
Modifier.height(150.dp)
.width(100.dp)
.background(Color(0xE6FFF2CC))
.align(BottomCenter)
.blur(10.dp)) {
Text(text = "Something Cool", Modifier.align(Center), color = Color.Black)
}
and this is the result. My persons legs are NOT blurred, but the text is blurred. So this is the opposite of what I want.John Nichol
10/20/2021, 12:41 PMColton Idle
10/20/2021, 12:48 PMAlbert Chang
10/20/2021, 1:43 PMRenderEffect
can only be applied to the entire graphics layer and I don't think you can render an image into two layers.Albert Chang
10/20/2021, 1:44 PMImage
composables rendering the different parts of an image.Colton Idle
10/20/2021, 1:55 PMColton Idle
10/20/2021, 1:55 PMColton Idle
10/20/2021, 1:58 PMhttps://github.com/mmin18/RealtimeBlurView/raw/master/imgs/1.gif▾
Chris Sinco [G]
10/20/2021, 8:20 PMRenderEffect
limitation is the issue where it blurs the content and not what’s behind it or the background layer necessarilyChris Sinco [G]
10/20/2021, 8:26 PMbackdrop-filter
does: https://css-tricks.com/almanac/properties/b/backdrop-filter/Chris Sinco [G]
10/20/2021, 8:27 PMNader Jawad
10/20/2021, 8:29 PMNader Jawad
10/20/2021, 8:30 PMColton Idle
10/20/2021, 8:31 PMColton Idle
10/20/2021, 8:31 PMColton Idle
10/20/2021, 8:34 PMColton Idle
10/20/2021, 8:35 PMNader Jawad
10/20/2021, 8:36 PMNader Jawad
10/20/2021, 8:37 PMColton Idle
10/20/2021, 8:40 PMChris Sinco [G]
10/20/2021, 9:39 PMColton Idle
10/20/2021, 9:39 PMColton Idle
10/20/2021, 9:39 PMColton Idle
10/20/2021, 9:40 PMColton Idle
10/20/2021, 9:41 PMColton Idle
10/21/2021, 9:52 PMChachako
10/28/2021, 9:28 AMSo something like this in compose isn’t easily doable with just the blur() modifier?So, if we can screenshot the content behind it, we can do this blur easily, but unfortunately, I can’t find any way to screenshot the content behind the widget in real time. 😪https://github.com/mmin18/RealtimeBlurView/raw/master/imgs/1.gif▾