etsy / AndroidStaggeredGrid

An Android staggered grid view which supports multiple columns with rows of varying sizes.
https://github.com/etsy/AndroidStaggeredGrid
4.76k stars 1.13k forks source link

Incorret item spacing after rotating without recreate activity #70

Open xavix-yo opened 10 years ago

xavix-yo commented 10 years ago

Hello!

Here my first post on github!

Manifest:

 <activity
            android:name="com.ambrosettilive.app.CardViewActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:launchMode="singleTop"
            android:theme="@style/AppBaseTheme" >
        </activity>

Layout:

<com.etsy.android.grid.StaggeredGridView

        android:id="@+id/staggeredGridView1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:item_margin="8dp"
        app:column_count="@integer/column_number" />
<!-- 4 column landscape and 3 on portrait-->

Before rotating: screen1 After rotating: screen2

Ask me whatever yout want.

Thank you, Daniele