Android Material Chip Margin Spacing in ChipGroup

March 19, 2019

If you add multiline Chip dynamically to ChipGroup until it expand to multiple rows, there is zero margin vertical margin.

Set app:chipSpacingVertical on ChipGroup to enable margin spacing.


NOTE: You can set app:chipSpacingHorizontal or app:chipSpacing as well.

NOTE: Strangely, default margin for static Chip defined in xml vs dynamic Chip added programatically is different. I am using

NOTE: Setting layoutParams on Chip doesn’t work.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.