Getting weird shadow drawing on a pixel tablet
# compose
c
Getting weird shadow drawing on a pixel tablet
kotlin.version=1.8.10 agp.version=7.4.1 compose.version=1.3.1
Copy code
Column(
    modifier = Modifier
        .clickable { onToggle(!state) }
        .shadow(4.dp, RoundedCornerShape(4.dp))
        .background(bgColor, RoundedCornerShape(4.dp))
        .size(48.dp, 48.dp)
        .padding(16.dp)
        .drawWithContent {
            this.drawContent()
            this.drawCircle(tintColor, animationDuration * 64.dp.value)
        },
    horizontalAlignment = Alignment.CenterHorizontally,
    verticalArrangement = Arrangement.Center
) {
    ...
}
How I'm rendering the blue buttons
Confirmed to be doing the same on 1.8.20 and compose 1.4.0
c
tangent... how do you like the pixel tablet? 😄
c
it's ok, the speaker in the stand is a little odd... sometimes it crackles, but then if I rewind a video and play it again it's fine :X. I've not used it as a standalone device yet because I don't have anything to protect the screen so wouldn't like throwing it in my bag sort of thing. I'm not a tablet power user though! Got the foldable phone coming today at some point, maybe that'll help me make the transition.
c
ah. thats exciting. mine was delayed yesterday!
c
Same, and it exhibits the same rendering issue when in folded out mode 😕
c
oof
c
This seems to be purely related overscroll