-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RecyclerView use two different layouts? #38
Comments
@L4grange yes, you can use loadArrayOfLayouts api instead of load |
Why I can't find such a method? |
I use workaround: create another viewType special for loader + two layouts, first - as wrapper/container for Skeleton.bind(View) approach, second - skeleton layout itself. Note: It's important to initialize skeleton in adapter's onCreateViewHolder, cuz it's called once per viewholder's life, while onBindViewHolder - might be called multiple times (recycling mechanism). |
Can you explain in detail please |
First of all I would like to thank you fort this amazing library!
In the app I'm building, my layout has a different first item in the RecyclerView, a "header" or "promoted" first item, and the rest of them are a second layout. Is there a way to get Skeleton to mimic this layout?
Imagine the layout where it's a vertical list of articles, and the first article is double the height of the rest of them, and some elements moved around, like the title.
Thank you!
The text was updated successfully, but these errors were encountered: