david.bilik
12/24/2019, 8:47 AM@Composable
fun PostCardSimple(post: Post) {
Ripple(bounded = true) {
Clickable(onClick = {
navigateTo(Screen.Article(post.id))
}) {
Row(modifier = Spacing(16.dp)) {
PostImage(modifier = Spacing(right = 16.dp), post = post)
Column(modifier = Flexible(1f)) {
PostTitle(post)
AuthorAndReadTime(post)
}
BookmarkButton(
isBookmarked = isFavorite(postId = post.id),
onBookmark = { toggleBookmark(postId = post.id) }
)
}
}
}
}
and the padding is controled via Spacing
modifier of the Row
. Is it possible that both Ripple
and Clickable
react only for inner elements and ignores padding around them?Andrey Kulikov
12/25/2019, 2:46 AM