(Android: padding and android: layout_ The difference between margin is actually very simple. Padding is a problem described from the perspective of the parent view. It rules that the content in it must be separated from the boundary of the parent view. Margin describes the problem from its own point of view. The rule itself and other (upper, lower, left, right) views are separated. If there is only one view at the same level, its effect is basically the same as that of padding. This document includes the following annexes:)