Create your account

Already have an account? Login here

Note: By joining, you will receive periodic emails from Coursetro. You can unsubscribe from these emails.

Create account

32. Padding vs. Margin

Design + Code an Android App from Scratch

Woah, wait a second..

Scrounge up some loose change to become a pro member, or login to your account to view this lesson.

Alright, join now. Or login to your account if you're already a pro member.

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.

Course Cirriculum