The margins attribute

Margins accept dimension resources or direct dimension values in one of the following supported units:

  • layout_margin
  • layout_marginTop
  • layout_marginBottom
  • layout_marginStart
  • layout_marginEnd

Get Mastering Android Development with Kotlin now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.