From 975ada92d4e2cc9b678a296342666b0eb9300046 Mon Sep 17 00:00:00 2001 From: David Hebbeker Date: Sat, 17 Mar 2018 14:42:12 +0100 Subject: [PATCH] Adjust the scale of the Memorex logo on start screen. 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 --- app/src/main/res/layout/activity_main.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 86a7ec8..8c2be48 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -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"