Skip to content
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

When the layout_width="wrap_content", the child views are not in the right width. #427

Open
zcbiner opened this issue May 15, 2018 · 4 comments
Labels

Comments

@zcbiner
Copy link

zcbiner commented May 15, 2018

The code:

<com.google.android.flexbox.FlexboxLayout
        xmlns:android="https://schemas.android.com/apk/res/android"
        xmlns:app="https://schemas.android.com/apk/res-auto"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:flexDirection="row">
        <TextView
            android:text="address:"
            android:layout_marginRight="10dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>
        <TextView
            android:id="@+id/cotent"
            android:text="this is a long long long long something something and could"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>
 </com.google.android.flexbox.FlexboxLayout>

In this way, I can't see the full "content" view. It's text is not complete in the screen.(if you can't see the photo, just click the link)
photo
Is there any idea to solve my problem? Thank you very much.

@thagikura thagikura added the bug label May 15, 2018
@thagikura
Copy link
Contributor

Thanks for the report. Looks like this is a bug with FlexboxLayou in the measure phase. Let me keep this as a bug.

@liangtg
Copy link

liangtg commented Oct 17, 2018

surround textview with ConstraintLayout may help

@benioZhang
Copy link

any solutions?

@dinomonster
Copy link

Is it still not fixed?

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

No branches or pull requests

5 participants