bgogetap / StickyHeaders

Easily add Sticky Headers to your RecyclerView
Apache License 2.0
521 stars 88 forks source link

requestLayout() improperly called by AppCompatTextView #60

Open Str4tocaster opened 6 years ago

Str4tocaster commented 6 years ago

Hello. I have this issue that infinitely print in log:

W/View: requestLayout() improperly called by android.support.v7.widget.AppCompatTextView{b2debd V.ED..C.. ........ 36,47-348,120 #7f090275 app:id/tvTitle} during second layout pass: posting in next frame W/View: requestLayout() improperly called by android.widget.RelativeLayout{2d66426 V.E...C.. ......I. 0,0-1080,168 #7f090163 app:id/header_view} during second layout pass: posting in next frame

You know something about it?

Str4tocaster commented 6 years ago

Yes. When i disabled this lib, issue was disappeared.

Issue description: When recyclerView in start position - there are no errors. But when i start scroll in log appear this errors.

I also found that requestLayout method called in StickyHeaderPositioner.java .Maybe issue is here. I will be very grateful if you solve this issue. Thanks.

Понедельник, 18 декабря 2017, 8:20 +05:00 от Brandon Gogetap < notifications@github.com >:

This is caused by using this library? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .

bgogetap commented 6 years ago

requestLayout is required in the waitForLayoutAndRetry method of StickyHeaderPositioner. Though I'll see if just calling it on the header view itself is sufficient.

The other one that's called in attachHeader may be redundant.

I'll mess around with them a bit and maybe get a snapshot out that you can try.

dimet commented 6 years ago

Any update on this? Having the same issue.

bgogetap commented 6 years ago

You can try removing the call I mentioned in my previous comment. I'm hesitant to put it in a release, though the current UI tests pass with it. I'll comment here if I do go ahead with it.

rovkinmax commented 5 years ago

Any changes?