RowStyleFactory


public interface RowStyleFactory


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

Public methods

abstract @StyleRes int

Returns the style resource to use for this child.

Public methods

getRowStyleRes

Added in 1.1.0-alpha02
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.

In this codelab, you’ll learn how to use Android Studio’s Layout Editor to build your views using ConstraintLayout.

Updated Dec 9, 2024

Follow best practices, eliminate boilerplate code, and reduce fragmentation

Updated Oct 28, 2024

The SearchView and action bar are only available on Android 3.0 and later. To support older platforms, you can fall back to the search dialog. The search dialog is a system provided UI that overlays on top of your application when invoked. To setup the…

Updated Feb 22, 2024