ConcatAdapter.Config.Builder


public final class ConcatAdapter.Config.Builder


The builder for Config class.

Summary

Public constructors

Public methods

@NonNull ConcatAdapter.Config
@NonNull ConcatAdapter.Config.Builder
setIsolateViewTypes(boolean isolateViewTypes)

Sets whether ConcatAdapter should isolate view types of nested adapters from each other.

@NonNull ConcatAdapter.Config.Builder

Sets how the ConcatAdapter should handle stable ids (hasStableIds).

Public constructors

Builder

Added in 1.2.0
public Builder()

Public methods

build

Added in 1.2.0
public @NonNull ConcatAdapter.Config build()
Returns
@NonNull ConcatAdapter.Config

A new instance of Config with the given parameters.

setIsolateViewTypes

Added in 1.2.0
public @NonNull ConcatAdapter.Config.Builder setIsolateViewTypes(boolean isolateViewTypes)

Sets whether ConcatAdapter should isolate view types of nested adapters from each other.

Parameters
boolean isolateViewTypes

true if ConcatAdapter should override view types of nested adapters to avoid view type conflicts, false otherwise. Defaults to DEFAULT's isolateViewTypes value (true).

See also
isolateViewTypes

setStableIdMode

Added in 1.2.0
public @NonNull ConcatAdapter.Config.Builder setStableIdMode(@NonNull ConcatAdapter.Config.StableIdMode stableIdMode)

Sets how the ConcatAdapter should handle stable ids (hasStableIds). See documentation in stableIdMode for details.

Parameters
@NonNull ConcatAdapter.Config.StableIdMode stableIdMode

The stable id mode for the ConcatAdapter. Defaults to DEFAULT's stableIdMode value (NO_STABLE_IDS).

See also
stableIdMode