Android 如何设置滚动选项的水平方向

Android 如何设置滚动选项的水平方向,android,Android,我使用滚动选项,并尝试将它们水平放置,以更方便 <android.support.design.widget.BottomNavigationView android:id="@+id/navigation" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="0dp" android:layout_marginEnd=

我使用滚动选项,并尝试将它们水平放置,以更方便

<android.support.design.widget.BottomNavigationView
    android:id="@+id/navigation"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="0dp"
    android:layout_marginEnd="0dp"
    android:background="?android:attr/windowBackground"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:menu="@menu/navigation" />

<LinearLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:weightSum="5"
    android:layout_marginTop="200dp"
    app:layout_constraintTop_toTopOf="parent">


    <com.webianks.library.scroll_choice.ScrollChoice
        android:id="@+id/scroll_choice1"
        android:layout_width="50dp"
        android:layout_height="300dp"
        android:layout_marginHorizontal="20dp"
        android:layout_weight="1" />



</LinearLayout>



但我不想使用ScrollView,因为我必须添加100个文本视图,实现起来非常简单。HorizontalScrollView实际上是ScrollView的复制品

<HorizontalScrollView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="50dp" >

//Place only one element within the layout as it will behave like a ScrollView

</HoHorizontalScrollView>

//在布局中只放置一个元素,因为它的行为类似于滚动视图
可能值得一读

如果有任何问题,请随时提问……

请在发布问题时提供代码。我必须添加100个文本视图。我不方便使用滚动视图@БааааФааааааааааа?ScrollChoice?是的,它不需要添加其他“视图”