Skip to content

Commit 59f8aff

Browse files
Tighten onboarding indicator spacing and card layout
1 parent 1fa5056 commit 59f8aff

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

app/src/main/res/drawable/onboarding_dot_selected.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<shape xmlns:android="http://schemas.android.com/apk/res/android"
33
android:shape="oval">
44
<size
5-
android:width="12dp"
6-
android:height="12dp" />
5+
android:width="14dp"
6+
android:height="14dp" />
77
<solid android:color="?attr/colorPrimary" />
88
</shape>

app/src/main/res/drawable/onboarding_dot_unselected.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<shape xmlns:android="http://schemas.android.com/apk/res/android"
33
android:shape="oval">
44
<size
5-
android:width="8dp"
6-
android:height="8dp" />
5+
android:width="10dp"
6+
android:height="10dp" />
77
<solid android:color="?attr/colorOutline" />
88
</shape>

app/src/main/res/layout/activity_onboarding.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,14 @@
5353
android:layout_weight="1"
5454
android:background="@android:color/transparent"
5555
android:minHeight="0dp"
56+
app:tabGravity="center"
5657
app:tabIndicatorFullWidth="false"
5758
app:tabIndicatorGravity="center"
5859
app:tabIndicatorHeight="0dp"
60+
app:tabPaddingStart="0dp"
61+
app:tabPaddingEnd="0dp"
62+
app:tabPaddingTop="0dp"
63+
app:tabPaddingBottom="0dp"
5964
app:tabRippleColor="@android:color/transparent" />
6065

6166
<com.google.android.material.button.MaterialButton

app/src/main/res/layout/item_onboarding_option.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
android:id="@+id/radio_button"
5858
android:layout_width="wrap_content"
5959
android:layout_height="wrap_content"
60-
android:layout_marginEnd="4dp"
60+
android:layout_marginEnd="0dp"
6161
app:layout_constraintEnd_toEndOf="parent"
6262
app:layout_constraintTop_toTopOf="parent"
6363
app:layout_constraintBottom_toBottomOf="parent"/>

0 commit comments

Comments
 (0)