The StorytellerGridView
inherits from StorytellerListView
(see StorytellerListView)
The StorytellerGridView
can be customized using these attributes,
startInset
: the top-inset of the stories inside the first row, default value is 0dp
endInset
: the bottom-inset of the stories inside the last row, default value is 0dp
cellSpacing
: the spacing all around (top, bottom, left, right) story item inside the grid. Default value is 4dp
.columnCount
: the number of columns used in the grid. Default value is 2
.<?xml version="1.0" encoding="utf-8"?>
<com.storyteller.ui.list.StorytellerGridView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/storyGridView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cellSpacing="4dp"
app:columnCount="3"
app:cellType="round"
app:insetStart="8dp"
app:insetEnd="8dp" />