Closed
Description
- I have searched existing issues and confirmed this is not a duplicate
Issues and steps to reproduce
- Code a FlexboxLayout as described below.
- Set a vertical divider for this flexbox layout.
- Change the visibility of one of those items in the middle to"gone".
Current behavior
Dividers stop being displayed between all visible items once you set visibility as "gone" of one of those items
Expected behavior
Dividers between all visible items should be shown
Version of the flexbox library
0.3.0
Link to code
Example with the code I have:
<com.google.android.flexbox.FlexboxLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
app:flexWrap="wrap"
app:dividerDrawableVertical="@drawable/divider_flexbox_vertical"
app:showDividerVertical="middle">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_minWidth="40dp"
android:orientation="vertical">
...
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_minWidth="40dp"
android:visibility="gone"
android:orientation="vertical">
...
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_minWidth="40dp"
android:orientation="vertical">
...
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_minWidth="40dp"
android:orientation="vertical">
...
</LinearLayout>
</com.google.android.flexbox.FlexboxLayout>
Metadata
Metadata
Assignees
Labels
No labels