https://kotlinlang.org logo
#compose
Title
# compose
c

Colton Idle

08/29/2020, 9:02 PM
In the Layout Codelab I don't get this part
For example, if you wanted to add some outer spacing, change the background color of the composable, and round the corners of the ripple, you could use the following code:
specifically the "round the corners of the ripple". This is the code snippet they're talking about:
Copy code
Row(modifier
        .padding(8.dp)
        .clip(RoundedCornerShape(4.dp))
        .background(MaterialTheme.colors.surface)
        .clickable(onClick = { /* Ignoring onClick */ })
        .padding(16.dp)
    ) {
We're not actually rounding the corner of the ripple, we're more so rounding the corner of the row, and so the ripple only goes up to the clipped area which gives you a rounded corner ripple... right?
l

Louis Pullen-Freilich [G]

08/29/2020, 9:22 PM
Correct, the wording there could probably be updated - the ripple is the same, it's just being clipped
c

Colton Idle

08/29/2020, 9:23 PM
That's what I thought, but I would agree that the wording here is a little misleading.
l

Louis Pullen-Freilich [G]

08/29/2020, 9:27 PM