- Forum posts: 2
Mar 29, 2016, 5:50:22 PM via Website
Mar 29, 2016 5:50:22 PM via Website
why cant the padding in android be more optimized?
instead of writting code like this
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp"
android:paddingBottom="8dp"
why cant we write like this
android:padding="8dp 8dp 8dp 8dp" // "top right bottom left"
In the similar way to margin in android
android:layout_margin="5dp 5dp 9dp 6dp" // "top right bottom left"