Android Как обосновать чипы в ChipGroup?

Как я могу обосновать чипы в ChipGroup? Я хочу реализовать чипы выбора, используя Material Components, и я не смог оправдать чипы внутри ChipGroup.

Я смогу выровнять те, что внутри FlexBoxLayout, но тогда мне придется вручную обрабатывать отдельный выбор.

<com.google.android.material.chip.ChipGroup
        android:id="@+id/general_feedback_flexboxlayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginTop="16dp"
        android:layout_marginEnd="16dp"
        android:layout_marginBottom="8dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/general_feedback_textview_subtitle"
        app:layout_constraintVertical_bias="0.0"
        app:singleSelection="true">

        <!--<com.google.android.flexbox.FlexboxLayout-->
            <!--android:layout_width="match_parent"-->
            <!--android:layout_height="match_parent"-->
            <!--app:flexWrap="wrap"-->
            <!--app:justifyContent="space_between">-->

            <com.google.android.material.chip.Chip
                android:id="@+id/general_feedback_chip_idea"
                style="@style/Widget.MaterialComponents.Chip.Choice"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:checkable="true"
                android:clickable="true"
                android:focusable="true"
                android:text="Idea"
                android:textColor="@color/colorPrimaryDark"
                app:chipBackgroundColor="@color/feedback_chip_state_list"
                app:chipStrokeColor="@color/colorPrimaryDark"
                app:chipStrokeWidth="1dp" />

            <com.google.android.material.chip.Chip
                android:id="@+id/general_feedback_chip_problem"
                style="@style/Widget.MaterialComponents.Chip.Choice"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:checkable="true"
                android:clickable="true"
                android:focusable="true"
                android:text="Problem"
                android:textColor="@color/colorPrimaryDark"
                app:chipBackgroundColor="@color/feedback_chip_state_list"
                app:chipStrokeColor="@color/colorPrimaryDark"
                app:chipStrokeWidth="1dp" />

            <com.google.android.material.chip.Chip
                android:id="@+id/general_feedback_chip_question"
                style="@style/Widget.MaterialComponents.Chip.Choice"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:checkable="true"
                android:clickable="true"
                android:focusable="true"
                android:text="Question"
                android:textColor="@color/colorPrimaryDark"
                app:chipBackgroundColor="@color/feedback_chip_state_list"
                app:chipStrokeColor="@color/colorPrimaryDark"
                app:chipStrokeWidth="1dp" />

            <com.google.android.material.chip.Chip
                android:id="@+id/general_feedback_chip_praise"
                style="@style/Widget.MaterialComponents.Chip.Choice"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:checkable="true"
                android:clickable="true"
                android:focusable="true"
                android:text="Praise"
                android:textColor="@color/colorPrimaryDark"
                app:chipBackgroundColor="@color/feedback_chip_state_list"
                app:chipStrokeColor="@color/colorPrimaryDark"
                app:chipStrokeWidth="1dp" />

        <!--</com.google.android.flexbox.FlexboxLayout>-->


    </com.google.android.material.chip.ChipGroup>

Результат: введите здесь описание изображения

Исключено: введите здесь описание изображения


comment
проверьте этот stackoverflow.com/a/49973416/7666442 и этот stackoverflow.com/a/50411183/7666442   -  person AskNilesh    schedule 26.03.2019
comment
@NileshRathod После добавления микросхемы FlexboxLayout станут доступны для множественного выбора. Я хотел, чтобы это был одиночный выбор.   -  person Anjula    schedule 26.03.2019
comment
для одного раздела используйте эту логику stackoverflow.com/a/35060634/7666442   -  person AskNilesh    schedule 26.03.2019