Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 993
lidkxx Avatar asked Aug 07 '18 10:08

lidkxx


1 Answers

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.

like image 133
Pramod Garg Avatar answered Sep 28 '22 13:09

Pramod Garg