[SOLVED] Android Chip Custom Height Or Padding – Chipgroup spacing


This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under
CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

Issue

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… :>

Answered By – lidkxx

people found this article helpful. What about you?