Skip to content

Dividers stop being displayed between all visible items once you set visibility as "gone" of one of those items #357

Closed
@jcmontesmartos

Description

@jcmontesmartos

Issues and steps to reproduce

  1. Code a FlexboxLayout as described below.
  2. Set a vertical divider for this flexbox layout.
  3. 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
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions