google / flexbox-layout

Flexbox for Android
Apache License 2.0
18.26k stars 1.8k forks source link

Flex Direction does not work in some phones. #406

Open Kyrmyzyanik opened 6 years ago

Kyrmyzyanik commented 6 years ago

Issues and steps to reproduce

I have used FlexBoxLayout and put FlexDirection as Column. My own phone Nexus did not have any problem. But in OnePlus 5T FlexBoxLayout does not react to FlexDirection changes.

<com.google.android.flexbox.FlexboxLayout android:id="@+id/outlet_photo_gallery" android:layout_width="match_parent" android:layout_height="match_parent" app:alignContent="flex_start" app:alignItems="flex_start" app:dividerDrawable="@drawable/outlet_flexbox_divider" app:flexDirection="column" app:flexWrap="wrap" app:showDivider="middle"/>

screenshot_20180306-175007

thagikura commented 6 years ago

Hi, thanks for the report.

Is it possible to post the screenshot with "Show layout bounds" setting true? It's hard to reproduce the issue with only the XML.

Kyrmyzyanik commented 6 years ago

@thagikura Updated: these three Views.

thagikura commented 6 years ago

Thank, hmm, but still hard to reproduce. I want to know the parent of FlexboxLayout (what constraints the height of it) Do you happen to have an example project or a zip file that can reproduce it?

thagikura commented 6 years ago

Hi @Kyrmyzyanik, any update on this?