flexbox-layout icon indicating copy to clipboard operation
flexbox-layout copied to clipboard

View is not visible after got wrapped

Open Harikrishnan19 opened this issue 3 years ago • 0 comments

  • [x] I have searched existing issues and confirmed this is not a duplicate

Issues and steps to reproduce

For view mobile models even after wrapping, the button is not seen in new column. This flexbox layout is wrapped inside a linear layout with layout_width as match_parent and layout_height as match_parent. And I have used this layout to inflate a dialog.

Error produced in Mi A1 run on android 9

Expected behavior

wrap button to next row if exceeds container size.

Version of the flexbox library

2.0.1

Link to code

<com.google.android.flexbox.FlexboxLayout android:id="@+id/flexLayout_actionBtn_container" android:layout_width="match_parent" android:layout_height="wrap_content" app:flexDirection="row" app:flexWrap="wrap" app:alignItems="center" app:alignContent="stretch" app:justifyContent="space_evenly" android:layout_marginTop="20dp" >

    <Button
        android:id="@+id/btn_close"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/btn_bg_filleted_full"
        android:backgroundTint="#696969"
        android:minHeight="32dp"
        android:paddingHorizontal="20dp"
        android:textAllCaps="false"
        android:textColor="@color/white"
        android:layout_margin="5dp"
        android:textSize="@dimen/chart_button_text_size" />

    <Button
        android:id="@+id/btn_continue_reading"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/btn_bg_filleted_full"
        android:backgroundTint="#808080"
        android:minHeight="32dp"
        android:paddingHorizontal="20dp"
        android:textAllCaps="false"
        android:textColor="@color/white"
        android:layout_margin="5dp"
        android:textSize="@dimen/chart_button_text_size" />

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

WhatsApp Image 2021-05-19 at 6 18 04 PM WhatsApp Image 2021-05-19 at 6 12 22 PM WhatsApp Image 2021-05-19 at 6 12 49 PM

Harikrishnan19 avatar May 19 '21 12:05 Harikrishnan19