package Ġio . github . su zp 1 9 8 4 . sticky header layout manager . widget Ċ Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ Ċ class ĠSt icky Header LayoutManager : ĠRecyclerView . LayoutManager () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġgenerate Default LayoutParams (): ĠRecyclerView . LayoutParams Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRecyclerView . LayoutParams ( ViewGroup . LayoutParams . WRAP _ CONTENT , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠViewGroup . LayoutParams . WRAP _ CONTENT ) ĊĠĠĠ Ġ} ĊĊ Ċ }