Skip to content

Commit

Permalink
refactor(setup): fine tune layout of SetupFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Jan 11, 2022
1 parent 3b6d853 commit cc1be99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/osfans/trime/setup/SetupFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SetupFragment : Fragment() {
return binding.root
}

// called on window focus changed
// Called on window focus changed
fun sync() {
isDone = page.isDone()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
android:tint="?attr/colorAccent">
<path
android:fillColor="@android:color/white"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM10,17l-5,-5 1.41,-1.41L10,14.17l7.59,-7.59L19,8l-9,9z"/>
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/fragment_setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
android:id="@+id/app_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
android:layout_marginBottom="20dp"
android:src="@mipmap/ic_app_icon"
app:layout_constraintBottom_toTopOf="@+id/step_text"
app:layout_constraintEnd_toEndOf="parent"
Expand All @@ -21,6 +21,7 @@
android:id="@+id/step_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginHorizontal="20dp"
android:gravity="center"
android:textSize="24sp"
Expand Down Expand Up @@ -75,4 +76,4 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/done_icon"
app:layout_constraintTop_toTopOf="@id/done_icon" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit cc1be99

Please sign in to comment.