addView

open fun addView(child: View)(source)

Add a view to the currently attached RecyclerView if needed. LayoutManagers should use this method to add views obtained from a Recycler using getViewForPosition.

Parameters

child

View to add


open fun addView(child: View, index: Int)(source)

Add a view to the currently attached RecyclerView if needed. LayoutManagers should use this method to add views obtained from a Recycler using getViewForPosition.

Parameters

child

View to add

index

Index to add child at