我想将Django表单集中的每个表单渲染成每行x个表单。例如,如果表单集有5个表单要显示,我希望第一行有两个表单,第二行有两个表单,第三行有最后一个表单。请记住,我要指定每行表格的最大数量。到目前为止,这就是我所拥有的:
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:elevation="0dp"
app:menu="@menu/navigation"/>