Layout Options
Overview
Creating LayoutOption
Using Builder
val layoutOption = LayoutOption.Builder()
.feedLayout(FeedLayout.GRID)
.columnCount(3)
.itemSpacing(8)
.roundedCorner(true)
.build()Using DSL (Recommended)
Properties
feedLayout
columnCount
backgroundColor
feedPadding
Parameter
Type
Description
itemSpacing
roundedCorner
roundedCornerRadius
showPlayIcon
playIconWidth
showShoppingBagIcon
shoppingBagIcon
Data Structure
Parameter
Type
Nullable
Description
Parameter
Type
Nullable
Description
Usage Examples
feedTitlePosition
aspectRatio
Thumbnail Selection Rules
Default Values
Property
Default Value
Layout Type Examples
Horizontal Layout
Vertical Layout
Grid Layout
Complete Examples
Modern Grid Feed
Horizontal Story Feed
Product Gallery Grid
Important Notes
See Also
Last updated
Was this helpful?