title: How to change background color of Android Material ChipGroup?
body: <p>I need to dynamically change the background color of the Android Material chips container (<code>ChipGroup</code>) component. I tried <code>setBackground()</code> and <code>setBackgroundTint()</code>. I also tried <code>android:background</code> and <code>android:backgroundTint</code> properties in XML (code below) just to check. But they are not working either. Any idea how to do this?</p>
  <pre><code>&lt;com.google.android.material.chip.ChipGroup
      android:id=&quot;@+id/chips&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginBottom=&quot;0dp&quot;
      android:background=&quot;@color/tw__transparent&quot;
      android:backgroundTint=&quot;@color/tw__transparent&quot;
      app:ensureMinTouchTargetSize=&quot;false&quot;
      app:chipSpacing=&quot;2dp&quot;/&gt;
  </code></pre>