Stay organized with collections Save and categorize content based on your preferences.

RowStyleFactory

public interface RowStyleFactory


Factory to return different styles for child views of a slice.

Summary

Public methods

abstract @StyleRes int

Returns the style resource to use for this child.

Public methods

getRowStyleRes

abstract @StyleRes int getRowStyleRes(@NonNull SliceItem rowItem)

Returns the style resource to use for this child.

Returns
@StyleRes int

Style resource or 0 if the default style should be used.