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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.