Sergey Y.
09/01/2020, 8:30 PMselectableItemBackgroundBorderless
attribute?
Thanks.flosch
09/01/2020, 8:34 PMModifer.padding
before your Modifier.clickable
that should do the trickSergey Y.
09/01/2020, 8:37 PM<ImageView
...
android:background="?selectableItemBackgroundBorderless"/>
selectableItemBackgroundBorderless
attribute?JD
09/01/2020, 8:46 PMIconButton(
onClick = {
},modifier = Modifier.padding(16.dp)
) {
Icon(asset = Icons.Filled.Favorite)
}
Sergey Y.
09/01/2020, 8:48 PMJD
09/01/2020, 9:13 PMIcon(
asset = Icons.Filled.Favorite,
modifier = Modifier.clickable(onClick = {
}).padding(start = 32.dp, top = 0.dp, end = 0.dp, bottom = 32.dp)
)
Sergey Y.
09/01/2020, 9:15 PMmbonnin
09/01/2020, 9:15 PMselectableItemBackgroundBorderless
doesn't really increase the clickable area does it? I think it just draws in the the parentJD
09/01/2020, 9:15 PMIcon(
asset = Icons.Filled.Favorite,
modifier = Modifier.clip(CircleShape).clickable(onClick = {
}).padding(start = 24.dp, top = 8.dp, end = 8.dp, bottom = 24.dp)
)
Sergey Y.
09/01/2020, 9:17 PMJD
09/01/2020, 9:18 PMSergey Y.
09/01/2020, 9:18 PMAndrey Kulikov
09/01/2020, 9:40 PMmbonnin
09/01/2020, 9:46 PMselectableItemBackgroundBorderLess
in that the parent has to be big enough to contain the ripple overflow ? I remember some bugs where the ripple was clipped because the parent wasn't big enoughAdam Powell
09/02/2020, 12:44 AMColton Idle
09/02/2020, 4:18 AM