【发布时间】:2022-04-13 00:58:20
【问题描述】:
我正在使用 android ConstraintLayout Flow ,我必须从右到左排列项目,如下所示:
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" />
注意:我们的 supportsRtl 在 Manifest 中设置为 False ...
我该怎么做?!
【问题讨论】:
-
找到解决方案了吗?
-
您找到解决方案了吗?我正在寻找 RTL 支持
标签: android android-constraintlayout right-to-left constraintlayout-helper-widget-flow