ViewportFiller

Simple implementation of LayoutInfo.ViewportFiller which fills the viewport by laying out items sequentially.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, orientation: Int)

Functions

Link copied to clipboard
open fun add(renderInfo: RenderInfo, width: Int, height: Int)
This will be called to inform implementations that the next layout has been computed.
Link copied to clipboard
open fun getFill(): Int
Return the fill along the main axis (i.e.
Link copied to clipboard
open fun wantsMore(): Boolean
Implementations should return true if they need more views to be computed in order to fill the screen.