GridSection
@CarProtocol
@RequiresCarApi(value = 8)
class GridSection : Section
A section within the SectionedItemTemplate that contains GridItems - good for showcase large artwork or images for every entry.
Summary
Nested types |
|---|
|
A builder that constructs |
Constants |
|
|---|---|
const Int |
Renders the image within the grid item in the shape of a circle by cropping it. |
const Int |
Renders the image within the grid item as-is without modifying its shape - this is the default. |
const Int |
Renders the items within the section in an extra large sized format. |
const Int |
ITEM_SIZE_LARGE = 3Renders the items within the section in a large format. |
const Int |
ITEM_SIZE_MEDIUM = 2Renders the items within the section in a medium sized format. |
const Int |
ITEM_SIZE_SMALL = 1Renders the items within the section in a small format - this is the default. |
Public functions |
|
|---|---|
Boolean |
|
Int |
Returns the shape which this section's grid item images should be rendered to. |
Int |
Returns the size which this section's grid items should be rendered at. |
Int |
hashCode() |
String |
toString() |
Inherited functions |
||||||||
|---|---|---|---|---|---|---|---|---|
|
Constants
ITEM_IMAGE_SHAPE_CIRCLE
const val ITEM_IMAGE_SHAPE_CIRCLE = 2: Int
Renders the image within the grid item in the shape of a circle by cropping it.
ITEM_IMAGE_SHAPE_UNSET
const val ITEM_IMAGE_SHAPE_UNSET = 1: Int
Renders the image within the grid item as-is without modifying its shape - this is the default.
ITEM_SIZE_EXTRA_LARGE
const val ITEM_SIZE_EXTRA_LARGE = 4: Int
Renders the items within the section in an extra large sized format.
ITEM_SIZE_LARGE
const val ITEM_SIZE_LARGE = 3: Int
Renders the items within the section in a large format.
ITEM_SIZE_MEDIUM
const val ITEM_SIZE_MEDIUM = 2: Int
Renders the items within the section in a medium sized format.
ITEM_SIZE_SMALL
const val ITEM_SIZE_SMALL = 1: Int
Renders the items within the section in a small format - this is the default.
Public functions
getItemImageShape
fun getItemImageShape(): Int
Returns the shape which this section's grid item images should be rendered to.
getItemSize
fun getItemSize(): Int
Returns the size which this section's grid items should be rendered at.