getHeaderLayout

abstract fun getHeaderLayout(headerPosition: Int): Int

This method gets called by HeaderItemDecoration to get layout resource id for the header item at specified adapter's position.

Return

int. Layout resource id.

Parameters

headerPosition

int. Position of the header item in the adapter.