Android — How to add Margin in Jetpack Compose
Is padding and margin the same thing ?
Sep 14, 2021
You can consider padding and margin as the same thing (imagine it as “spacing”). A padding can be applied twice (or more) in the same composable and achieve the similar behavior you would get with margin+padding. For example:
val shape = CircleShape
Text(
text = "Text 1",
style =…