Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- values/
- integers.xml
- values-small/
- integers.xml
- values-large/
- integers.xml
- values-xlarge/
- integers.xml
- <?xml version="1.0" encoding="utf-8"?>
- <resources>
- <integer name="grid_column_count">2</integer>
- </resources>
- <?xml version="1.0" encoding="utf-8"?>
- <FrameLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- >
- <com.etsy.android.grid.StaggeredGridView
- android:id="@+id/grid_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:item_margin="8dp"
- app:column_count="@integer/grid_column_count" />
- <ViewStub
- android:id="@android:id/empty"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:layout="@layout/empty_view"/>
- </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement