-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dividers stop being displayed between all visible items once you set visibility as "gone" of one of those items #357
Comments
any news? Do you need more info? |
Hi, sorry for the delay. First of all, thank you very much for filing this issue. |
No problem, thank to you. If you know more information, just let me know |
I wasn't able to reproduce the issue so far.
But three LinearLayout except the second one that is marked as gone were all visible including their dividers in the middle. Do you have a complete example of your XML that can reproduce the issue? <com.google.android.flexbox.FlexboxLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:id="@+id/flexbox_layout"
android:layout_width="wrap_content"
android:layout_gravity="center_horizontal"
app:flexWrap="wrap"
app:dividerDrawableVertical="@drawable/ic_add_white_24dp"
app:showDividerVertical="middle" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_minWidth="40dp"
android:background="#999"
android:orientation="vertical">
<TextView
android:layout_height="100dp"
android:layout_width="100dp"
android:text="text1"
/>
</LinearLayout>
<!--android:visibility="gone"-->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_minWidth="40dp"
android:visibility="gone"
android:background="#777"
android:orientation="vertical">
<TextView
android:layout_height="100dp"
android:layout_width="100dp"
android:text="text2"
/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_minWidth="40dp"
android:background="#222"
android:orientation="vertical">
<TextView
android:layout_height="100dp"
android:layout_width="100dp"
android:text="text3"
/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_minWidth="40dp"
android:background="#666"
android:orientation="vertical">
<TextView
android:layout_height="100dp"
android:layout_width="100dp"
android:text="text4"
/>
</LinearLayout>
</com.google.android.flexbox.FlexboxLayout> |
I am still able to reproduce this bug even with the example layout you provided me. From your code, I have only replaced the divider: you are using the white add drawable but I am with the black one. This is a full example, as you can see I am using Android Databinding and Support libraries (design, appcompat...)
I am using the following libraries and tools:
|
Oh right. I was able to reproduce it thanks for the clarification. |
This should be fixed by #361. |
ok, thank you so much! |
Issues and steps to reproduce
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:
The text was updated successfully, but these errors were encountered: