androidmaterial-designmaterial-components-androidmaterial-componentsandroid-chips

Android Chip Custom Height Or Padding - Chipgroup spacing


Is there a way to change default material Chip vertical padding or height? From the docs I see there surely is a way to set the minimal height, but I would like to make chips "thinner", like in this design:

enter image description here


Solution

  • There's a very straightforward way to achieve what I want: all I needed to do was to set the android:layout_height attribute on the ChipGroup enclosing my chips.

    I guess it makes sense that it's not possible to achieve that on a single chip... :>