You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I use workaround: create another viewType special for loader + two layouts, first - as wrapper/container for Skeleton.bind(View) approach, second - skeleton layout itself.
In adapter's onCreateViewHolder method you need to inflate wrapper layout (as for ussual item), then initialize it via Skeleton.bind.
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).
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: