Refactor margin/padding
Do two things to the margin and padding system: - Remove the redundant padding/margin dimens and replace it with a unified "spacing" dimen namespace - Make most margin and padding dimens follow the divisible-by-8 rule in material design
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/margin_small">
|
||||
android:padding="@dimen/spacing_small">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/accent"
|
||||
@@ -14,7 +14,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/ui_circle_ripple"
|
||||
android:padding="@dimen/margin_medium"
|
||||
android:padding="@dimen/spacing_medium"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/ic_check"
|
||||
tools:backgroundTint="?attr/colorPrimary"
|
||||
|
||||
Reference in New Issue
Block a user