Decoration component in extension

Hello, i wanted to use decoration component to set margin of cardview in an extension so how to achieve that in an extension

Always prefer using in built component instead of using extension for same purpose as this will increase app size.


Thanks for your advise @ramrajput200021 but i want to use the decoration component in my extension

Maybe you wants the Java file of decoration component so you can use it and make a different extension.

Absolutely right…

You can access it via built-in components in the kodular … Yet If you are not able to do this… then think about an external extension (which may contain third party libraries) …

First) Some extension sizes is in MBS.
Second) Sometimes the Google Play Store rejects our app because of third party libraries(its happen, may b due to extension which contain third party liberary.