Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to control flex lines #416

Closed
uburoiubu opened this issue Mar 19, 2018 · 1 comment
Closed

How to control flex lines #416

uburoiubu opened this issue Mar 19, 2018 · 1 comment

Comments

@uburoiubu
Copy link

uburoiubu commented Mar 19, 2018

Hello there.

I would like to implement the following functionality:

I have a HorizontalScrollView, inside which a FlexBoxLayout. Items should fit screen width, but if there are more than four lines, I would like to increase FlexBoxLayoutwidth in order to keep 4 lines (in this case some items will be outside of the screen)

<HorizontalScrollView
            android:id="@+id/horizontalScroll"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1.2"
            android:fillViewport="true"
            android:scrollbarSize="1dp">

            <com.google.android.flexbox.FlexboxLayout
                android:id="@+id/bottomFlexBox"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:paddingBottom="32dp"
                android:paddingEnd="32dp"
                android:paddingStart="32dp"
                app:alignContent="flex_end"
                app:alignItems="flex_end"
                app:dividerDrawable="@drawable/divider"
                app:flexDirection="row"
                app:flexWrap="wrap"
                app:justifyContent="center"
                app:showDivider="middle" />

        </HorizontalScrollView>
@thagikura
Copy link
Contributor

It's not supported at this moment. #156 is on the TODO list.
That feature may be the solution.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants