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:
OxygenCobalt
2021-04-25 14:59:21 -06:00
parent 39f26b4feb
commit 029a4b1ff6
30 changed files with 212 additions and 218 deletions
+4 -4
View File
@@ -15,22 +15,22 @@
android:animateLayoutChanges="true"
android:gravity="center"
android:orientation="vertical"
android:padding="@dimen/padding_small">
android:padding="@dimen/spacing_small">
<ProgressBar
android:id="@+id/loading_circle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_small"
android:layout_margin="@dimen/spacing_small"
android:indeterminateTint="?attr/colorPrimary"
android:indeterminateTintMode="src_in"
android:paddingBottom="@dimen/padding_tiny" />
android:paddingBottom="@dimen/spacing_tiny" />
<ImageView
android:id="@+id/loading_error_icon"
android:layout_width="@dimen/size_error_icon"
android:layout_height="@dimen/size_error_icon"
android:layout_margin="@dimen/margin_small"
android:layout_margin="@dimen/spacing_small"
android:contentDescription="@string/description_error"
android:indeterminateTint="?attr/colorPrimary"
android:indeterminateTintMode="src_in"