Colton Idle
08/29/2020, 9:02 PMFor 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:
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?Louis Pullen-Freilich [G]
08/29/2020, 9:22 PMColton Idle
08/29/2020, 9:23 PMLouis Pullen-Freilich [G]
08/29/2020, 9:27 PM