shuhart / StickyHeader

A simple lightweight sticky header ItemDecorator for RecyclerView
Apache License 2.0
134 stars 30 forks source link

Fix Header size recalculation (activity.recreate, ...) #10

Open stmon opened 4 years ago

stmon commented 4 years ago

In certain circumstances Sticky Header size is recalculated when not visible. Usually Header width becomes 0 when this happens and Header disappear. Replacing OnGlobalLayoutListener with OnLayoutChangeListener fixes the problem.