Open rok5ek opened 7 years ago
Maybe, ItemDecoration
can handle that. I'll give it a try.
@h6ah4i That would mean a ton if it would work with decorators, but it doubt it :/
@rok5ek Hi. Try the following branch code 😄
@h6ah4i Wow im impressed :+1: awesome piece of code. It works perfectly, even with the progress alpha, great! :wink:
Thank you again!
Hello. I'm having the same problem. The difference is i want to achieve this behavior on a RecyclerView which uses HeaderFooterAdapter and ExpandableAdapter. I've already tried class FillExpandingAnimationGapDecoration but it seems like it only works for RecyclerView with single ExpandableAdapter. Any suggestions? Thanks!
I have an issue where i would like to fill the expanded space with a custom color or gradient in that matter. However RecyclerView works in a way that it expands the rows by leaving an empty space between items which results in seeing a white background (screenshot) or whatever is the background color. The empty space gets filled after the expansion animation, where onBindViewHolder gets called.
Could this be solved somehow, where I could fill this empty space with a custom view, so it gets epxanded nicely without color flickering?
Is there a way I could attach a listener to the animation and overlay it with a virtual view for that time?
Right before the child views are shown![expansion_empty](https://cloud.githubusercontent.com/assets/4641831/23014015/e239f8c4-f435-11e6-8d94-3c43a17dd0e4.png)
After the child views are shown (group is expanded)![expansion_full](https://cloud.githubusercontent.com/assets/4641831/23014163/89d6d8b8-f436-11e6-9db5-2a54e211dc8a.png)