我正在使用 android ConstraintLayoutFlow ,我必须从右到左排列项目,如下所示:
XML代码 :
<androidx.constraintlayout.helper.widget.Flow
android:id="@+id/flow"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:flow_horizontalStyle="spread_inside"
app:flow_maxElementsWrap="4"
app:flow_verticalGap="29dp"
app:flow_wrapMode="aligned"
app:constraint_referenced_ids="item1 , item2 , ..."
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/headerTextView" />
Run Code Online (Sandbox Code Playgroud)
注意:我们supportsRtl在清单中设置 False ...
我怎样才能做到这一点 ?!
android right-to-left android-constraintlayout constraintlayout-helper-widget-flow