From dc2cdeb4269accdadd013d27533c3e63ed4bfc64 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Mon, 29 Feb 2016 14:34:17 +0100 Subject: [PATCH] Fix some scaling issues with non-square album art. Change-Id: I541b4ed4c6c0edd09b6419d76566ea0d1fce81da --- res/layout/album_art_fragment.xml | 6 ++---- res/layout/bottom_action_bar.xml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/res/layout/album_art_fragment.xml b/res/layout/album_art_fragment.xml index 59a5ad7..423c62c 100644 --- a/res/layout/album_art_fragment.xml +++ b/res/layout/album_art_fragment.xml @@ -22,7 +22,5 @@ android:id="@+id/audio_player_album_art" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_centerHorizontal="true" - android:scaleType="fitXY" - android:background="@drawable/default_artwork"/> - \ No newline at end of file + android:src="@drawable/default_artwork"/> + diff --git a/res/layout/bottom_action_bar.xml b/res/layout/bottom_action_bar.xml index fd0d680..8ce90fd 100644 --- a/res/layout/bottom_action_bar.xml +++ b/res/layout/bottom_action_bar.xml @@ -33,7 +33,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|center" - android:background="@drawable/default_artwork" /> + android:src="@drawable/default_artwork" />