The padding attribute

Padding accepts dimension resources or direct dimension values in one of the following supported units:

  • padding
  • paddingTop
  • paddingBottom
  • paddingStart
  • paddingEnd

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.