Google 致力于为黑人社区推动种族平等。查看具体举措

RowStyleFactory

interface RowStyleFactory
androidx.slice.widget.RowStyleFactory

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

Summary

Public methods
abstract Int
getRowStyleRes(@NonNull rowItem: SliceItem)

Returns the style resource to use for this child.

Public methods

getRowStyleRes

@StyleRes abstract fun getRowStyleRes(@NonNull rowItem: SliceItem): Int

Returns the style resource to use for this child.

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