skydoves / AndroidVeil

:performing_arts: An easy and flexible way to implement loading skeletons and shimmering effects on layouts for Android.
Apache License 2.0
1.52k stars 106 forks source link

how to LinearLayoutManager is LinearLayoutManager.HORIZONTAL #15

Closed sunny0092 closed 4 months ago

sunny0092 commented 3 years ago

Is your feature request related to a problem? I changed LinearLayoutManager.HORIZONTAL but it didn't work

Describe the solution you'd like: holder.binding.recyclerViewContent.run { setVeilLayout(R.layout.item_home_feature_shimmer) setAdapter(featureHorizontalAdapter) setLayoutManager(LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false)) addVeiledItems(2) }

thanks admin

skydoves commented 3 years ago

Actually, it is not supporting the HORIZONTAL now but I will consider adding the HORIZONTAL. Thanks for your issue :)

G00fY2 commented 3 years ago

This should be stated in the Readme!

Jigar-zest commented 2 years ago

Any ETA on this?

avalanchas commented 10 months ago

@skydoves do I see it correctly that you would have to set different layout params in the VeilLayout:addMaskElements to allow for horizontal alignment? Is this something you would accept a PR for?

skydoves commented 4 months ago

Hey guys, the new version 1.1.4 has been released, and now you can use LinearLayoutManager.HORIZONTAL.