bgogetap / StickyHeaders

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

Dynamically change sticky header #39

Closed hadalaba closed 7 years ago

hadalaba commented 7 years ago

In my app I dynamically change two TextView with numbers in sticky header by clicking overflow menu (in screenshot). Then I insert a number with length more then 1, and TextView don't display the whole number. Is there another way to fix it? without setting new adapter and StickyLayoutManager, because this way refreshing the whole RecyclerView, and I don't need it :)

TextView has layout_width="wrap_content" parameter (Sorry for bad language) sticky header

However, one of the simplest process to add sticky header :) great work!

bgogetap commented 7 years ago

So the TextView content is being cut off?

hadalaba commented 7 years ago

yes, it is

before before

1 changing name 2 changing row 3 changing sum row

after after

bgogetap commented 7 years ago

Sorry for the delay, this is still something I will look into but I've been pretty busy lately.

bgogetap commented 7 years ago

Could you please see if this is still an issue in 0.4.8?

Also, is the TextView of your header set to match_parent for width?

bgogetap commented 7 years ago

Make that 0.4.9. I was able to periodically reproduce what I think your issue is, but it's fixed now (I'm forcing a layout of the Sticky Header view when re-bound).