I am programatically adding custom views to a vertical LinearLayout, and I would like there to be some space between the views. I have tried adding: setPadding(0, 1, 0, 1)
Try to add Space widget after adding view like this:
layout.addView(view) val space = Space(context) space.minimumHeight = spaceInterval layout.addView(space)