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)
If your layout contain labels o some container for text. You can add at the end of each text "\n" to split a line and make space between elements.
Example: