Here is a very simple layout:

<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.chip.ChipGroup 
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#CEECF6">

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Big text"
    android:textSize="24sp" />

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Small text"
    android:textSize="14sp" />
</com.google.android.material.chip.ChipGroup>

And here is its result:

Somehow a ChipGroup calculates its height based on the height of the last item added to it. If I change two TextViews so the 'Big text' goes last, then everything is fine, the height of a ChipGroup corresponds to the height of a 'Big text' now.

I'm using the latest version of the Material dependency (1.12.0 for now).

I didn't find any reason for such weird behaviour and a way to fix that.

Source: View source