Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Adjust the scale of the Memorex logo on start screen.
Browse files Browse the repository at this point in the history
This fixes #3.

Using [`FIT_CENTER`][1]:
> Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. The result is centered inside dst.

[1]: https://developer.android.com/reference/android/widget/ImageView.ScaleType.html#FIT_CENTER
  • Loading branch information
dhebbeker committed Mar 17, 2018
1 parent d214fc2 commit 975ada9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
android:background="#1A02C8"
android:contentDescription="@string/start_string_app_name"
android:onClick="startGame"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down

0 comments on commit 975ada9

Please sign in to comment.