Android Chip Custom Height Or Padding - Chipgroup spacing

lidkxx picture lidkxx · Aug 7, 2018 · Viewed 16.5k times · Source

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

Answer

Pramod Garg picture Pramod Garg · Jul 24, 2019

In the 1.1.0-alpha* versions extra spacing is added for the chip. After a lot of hit and trial I managed to remove that spacing using:

app:chipMinTouchTargetSize="0dp"

Looking at the class file for Chip, it seems that it's related to Android's minimum touch target size, so consider that before changing this.