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
Currently it is possible to set the Padding of a carousel via a resource or dp while the item spacing can only be set as part of the Carousel.Padding object and only directly in pixels. Would be great to be able to set the item spacing as dp or resource too.
As i understand it's only a matter of adding a @ModelProp annotation right?
The text was updated successfully, but these errors were encountered:
Yep, I've thought about this too. I left it off because it adds a lot of extra size to the Padding class. I would be open to updating the class to allow it though, maybe something like Padding.dp(4). or Padding.resource(R.dimen.foo)
You could add a new property with @ModelProp, but you'd have to be careful with that because having two @ModelProp setting the same underlying value can conflict.
Currently it is possible to set the Padding of a carousel via a resource or dp while the item spacing can only be set as part of the
Carousel.Padding
object and only directly in pixels. Would be great to be able to set the item spacing as dp or resource too.As i understand it's only a matter of adding a
@ModelProp
annotation right?The text was updated successfully, but these errors were encountered: