Releases: omtodkar/ShimmerRecyclerView
Releases · omtodkar/ShimmerRecyclerView
Upgraded dependencies and build tools
Horizontal LinearLayout problem fixed
v0.4.0 release v0.4.0
Multiple viewType support for ShimmerAdapter and some easy access xml attributes
Now you can set xml attributes for shimmer layout reference and number of shimmer to be shown while loading. Also now you can able to change view type of ShimmerAdapter
- New
ItemViewType
contract to setup viewType forShimmerAdapter
based onlayoutType
andposition
, useShimmerRecyclerView.setItemViewType
to set contract. - Use
shimmer_recycler_layout
xml attribute to set shimmer layout reference. - Use
shimmer_recycler_item_count
xml attribute to set number of shimmer items.
Bug fixes and minor changes.
- Now use
setLayoutManager(androidx.recyclerview.widget.RecyclerView.LayoutManager, int)
to setup layout manager and shimmer layout resource together. com.todkars.shimmer.ShimmerAdapter
is now accessible.- Added support for Vertical / Horizontal
GridLayoutManager
.
Pre release
- use
showShimmer
andhideShimmer
to toggle shimmer view. - Auto-detect layout type and orientation while showing shimmer.
- Setup own Shimmer using
ShimmerRecyclerView#setShimmer(com.facebook.shimmer.Shimmer)
to customize for ShimmerRecyclerView. - All xml attributes are similar as facebook
ShimmerLayout
.