Я пытаюсь создать много контейнеров опций, которые будут состоять из 2-10 опций.Я хочу разместить эти параметры в контейнере, который должен центрировать параметры и сделать его вертикальным с возможностью прокрутки, как показано на рисунке ниже.Пожалуйста помоги.Также, как я могу заставить ScrollView
иметь элементы рядом друг с другом.
Image:
![enter image description here](https://i.stack.imgur.com/ykqHb.png)
activity_main.xml:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/light_black"
android:orientation="vertical"
tools:context=".MainActivity">
<RelativeLayout
android:id="@+id/filter_options"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="visible"
android:background="@color/secondary_color"
android:orientation="vertical">
<ScrollView
android:background="@color/light_black"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="100dp">
<TextView
android:layout_width="150dp"
android:layout_height="fill_parent"
android:text="Option 1"
android:textAlignment="center"
android:textSize="28dp"
android:textColor="@color/white"
android:background="@color/green">
</TextView>
</ScrollView>
</RelativeLayout>
</android.support.constraint.ConstraintLayout>