Is it possible to set Material ChipGroup orientation to VERTICAL?
问题 I'm adding a material ChipGroup dynamically to a parent linear layout which is set to VERTICAL orientation but the chip items seem to be added horizontally. Is there any way to make it lay out the chip items vertically? setLayoutDirection() method of ChipGroup class method doesn't seem to take any parameter that supports VERTICAL orientation. 回答1: you can set width = match_parent in each Chip item <com.google.android.material.chip.ChipGroup android:id="@+id/chipGroup" android:layout_width=