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

manueldidonna

06/25/2020, 7:20 PM
ListItem
icon is wrapped in a
Box
with
ContentGravity.TopStart
. I think that a Center Alignment would be more appropriate
a

Andrey Kulikov

06/25/2020, 7:57 PM
@Mihai Popa
a

Anastasia [G]

06/25/2020, 11:16 PM
It seems like material specs suggest center alignment only for a Single-line item https://material.io/components/lists#specs
m

Mihai Popa

06/26/2020, 9:17 AM
According to the spec, the icon should be at 16dp padding from the top. This means that if your icon is 40x40 the icon will be centered, if it is smaller it will not. It seems that your screenshot conforms to the spec 🙂 If you really want to center the image, feel free to wrap your icon in a 40x40 Box with center gravity. Let me know if this helps.
m

manueldidonna

06/26/2020, 11:47 AM
Thanks and sorry for making you waste time
m

Mihai Popa

06/26/2020, 12:06 PM
No worries at all, let us know if you have more questions 🙂
🙂 1
3 Views