Android 8.0 (API level 26) makes it easier for you to specify situations where opposite sides of a View element use the same margin or padding. Specifically, you can now use the following attributes in your layout XML files:
- layout_marginVertical, which defines layout_marginTop and layout_marginBottom at the same time.
- layout_marginHorizontal, which defines layout_marginLeft and layout_marginRight at the same time.
- paddingVertical, which defines paddingTop and [paddingBottom] at the same time.
- paddingHorizontal, which defines [paddingLeft] and [paddingRight] at the same time.
But
參考 https://developer.android.com/about/versions/oreo/android-8.0#ulmp https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/tools/aapt2/#version-2_16 [paddingBottom]:https://developer.android.com/reference/android/R.attr#paddingBottom [paddingLeft]:https://developer.android.com/reference/android/R.attr#paddingLeft [paddingRight]:https://developer.android.com/reference/android/R.attr#paddingRight

