- 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"
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.