How do I create a chip with choice style programmatically?
Copy code
<com.google.android.material.chip.Chip
android:id="@+id/chip_1"
style="@style/Widget.MaterialComponents.Chip.Choice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="Test" />
// tried this but it doesn't work
Chip(context, null, R.style.Widget_MaterialComponents_Chip_Choice)