google / flexbox-layout

Flexbox for Android
Apache License 2.0
18.25k stars 1.79k forks source link

Add gap attribute #608

Open gmanolesi opened 2 years ago

gmanolesi commented 2 years ago

Can you please add the "gap" attribute to the Flexbox?

arnosolo commented 1 year ago

Yes, we need gap attribute

ShortDevelopment commented 10 months ago

This would be awesome

github2136 commented 5 months ago
<com.google.android.flexbox.FlexboxLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:dividerDrawable="@drawable/sha_divider_media"
    app:flexWrap="wrap"
    app:showDivider="middle"/>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <size
        android:width="20dp"
        android:height="20dp" />
</shape>

This allows you to put a fixed interval between each term