Skip to content

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

Open
@zcbiner

Description

@zcbiner

The code:

<com.google.android.flexbox.FlexboxLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions