MCPcopy Create free account
hub / github.com/DrownCoder/RecyclerViewStudy / setAdapter

Method setAdapter

app/src/main/assets/RecyclerView.java:1146–1152  ·  view source on GitHub ↗

Set a new adapter to provide child views on demand. When adapter is changed, all existing views are recycled back to the pool. If the pool has only one adapter, it will be cleared. @param adapter The new adapter to set, or null to set no adapter. @see #swapAdapter(Adapter, boolean)

(Adapter adapter)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

onCreateMethod · 0.80
onBindViewHolderMethod · 0.80

Calls 3

setLayoutFrozenMethod · 0.95
setAdapterInternalMethod · 0.95
requestLayoutMethod · 0.95

Tested by

no test coverage detected