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

Wrong placement #609

Open
hijunmeng opened this issue Aug 18, 2022 · 0 comments
Open

Wrong placement #609

hijunmeng opened this issue Aug 18, 2022 · 0 comments

Comments

@hijunmeng
Copy link

Issues and steps to reproduce

<com.google.android.flexbox.FlexboxLayout
        android:id="@+id/flexboxLayout"
        android:layout_width="100dp"
        android:layout_height="wrap_content"
        android:background="#00ffff"
        app:dividerDrawable="@drawable/divider"
        app:flexWrap="wrap"
        app:showDivider="middle">

        <TextView
            android:id="@+id/textview1"
            android:layout_width="50dp"
            android:layout_height="wrap_content"
            android:background="#ff0000"
            android:text="111112" />

        <TextView
            android:id="@+id/textview2"
            android:layout_width="80dp"
            android:layout_height="wrap_content"
            android:background="#ffff00"
            android:text="1111122222" />

        <TextView
            android:id="@+id/textview3"
            android:layout_width="20dp"
            android:layout_height="wrap_content"
            android:background="#ff00ff"
            android:text="1" />

    </com.google.android.flexbox.FlexboxLayout>

divider.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <size
        android:width="10dp"
        android:height="10dp" />
    <solid android:color="#44A444" />
</shape>
  • It appears as follows:
    vrZIS0.png

Expected behavior

  • it should be like that

vrZTyT.png

Version of the flexbox library

3.0.0

# 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

1 participant