Thursday, April 21, 2011

Margins, Padding What are they?

In Android layouts, you come across margins and padding a lot. What is the difference between them?

For the novice, here is the explanation:

Padding is the space inside the border between the border and the actual contents of the view.

Margins are the spaces outside the border of this view, between the border and the other elements next to this view.

No comments:

Post a Comment