eowise / recyclerview-stickyheaders

DEPRECATED. Android library that integrate sticky section headers in your RecyclerView
http://eowise.github.io/recyclerview-stickyheaders
MIT License
960 stars 148 forks source link

fix measure in 4.2.2 #4

Closed hazam closed 9 years ago

hazam commented 9 years ago

The measure code breaks in 4.2.2 - at least thats my experience, I got a 5.0 and a 4.2.2 device and onmeasure breaks on the second one.

Turns out that View.MeasureSpec.makeMeasureSpec(WRAP_CONTENT ... is wrong

leruaa commented 9 years ago

Thanks, I only have a 5.0 device currently.

I will merge this tonight.

leruaa commented 9 years ago

Btw, can you paste the layout of the header you are using ? (Or maybe you saw the bug with the samples app ?)

hazam commented 9 years ago

Yes, the sample is showing the bug as well - header view measured as 1million pixels tall :) On Oct 22, 2014 3:59 PM, "Aurélien" notifications@github.com wrote:

Btw, can you paste the layout of the header you are using ? (Or maybe you saw the bug with the samples ?)

— Reply to this email directly or view it on GitHub https://github.com/eowise/recyclerview-stickyheaders/pull/4#issuecomment-60088635 .