Design + Code an Android App from Scratch
This video illustrates the difference between padding and margin. Padding controls the spacing between the content inside the View and the boundaries of the View. Margin controls the spacing between the View and boundaries of the ViewGroup inside which the View is placed. Padding and Margin values can be specified in either XML or code.