From fb2dab0a257ad76c8689db8c44e1536e06198afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Garc=C3=ADa=20Amor?= Date: Wed, 4 Nov 2020 21:00:16 +0100 Subject: [PATCH 1/2] Reorder elements in player view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Óscar García Amor --- .../src/main/res/layout-land/download.xml | 14 +-- .../src/main/res/layout-port/download.xml | 8 +- .../layout/download_button_bar_flipper.xml | 89 ------------------- .../src/main/res/layout/download_slider.xml | 17 ---- .../src/main/res/layout/media_buttons.xml | 70 ++++++++------- .../src/main/res/layout/player_media_info.xml | 79 ++++++++++++++++ .../src/main/res/layout/player_slider.xml | 40 +++++++++ 7 files changed, 168 insertions(+), 149 deletions(-) delete mode 100644 ultrasonic/src/main/res/layout/download_button_bar_flipper.xml delete mode 100644 ultrasonic/src/main/res/layout/download_slider.xml create mode 100644 ultrasonic/src/main/res/layout/player_media_info.xml create mode 100644 ultrasonic/src/main/res/layout/player_slider.xml diff --git a/ultrasonic/src/main/res/layout-land/download.xml b/ultrasonic/src/main/res/layout-land/download.xml index 84053a6b..094c65e2 100644 --- a/ultrasonic/src/main/res/layout-land/download.xml +++ b/ultrasonic/src/main/res/layout-land/download.xml @@ -128,28 +128,28 @@ + a:id="@+id/playback_text" + a:layout_above="@+id/slider" > - + + a:layout_above="@+id/buttons"> - + + a:id="@+id/buttons" > - + diff --git a/ultrasonic/src/main/res/layout-port/download.xml b/ultrasonic/src/main/res/layout-port/download.xml index d2f8d73a..807b4ebb 100644 --- a/ultrasonic/src/main/res/layout-port/download.xml +++ b/ultrasonic/src/main/res/layout-port/download.xml @@ -121,10 +121,10 @@ - - - + - + + + \ No newline at end of file diff --git a/ultrasonic/src/main/res/layout/download_button_bar_flipper.xml b/ultrasonic/src/main/res/layout/download_button_bar_flipper.xml deleted file mode 100644 index 94e9d34d..00000000 --- a/ultrasonic/src/main/res/layout/download_button_bar_flipper.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ultrasonic/src/main/res/layout/download_slider.xml b/ultrasonic/src/main/res/layout/download_slider.xml deleted file mode 100644 index b5131585..00000000 --- a/ultrasonic/src/main/res/layout/download_slider.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/ultrasonic/src/main/res/layout/media_buttons.xml b/ultrasonic/src/main/res/layout/media_buttons.xml index 915f9eee..c1f299dd 100644 --- a/ultrasonic/src/main/res/layout/media_buttons.xml +++ b/ultrasonic/src/main/res/layout/media_buttons.xml @@ -1,81 +1,87 @@ + xmlns:tools="http://schemas.android.com/tools" + a:layout_width="fill_parent" + a:layout_height="wrap_content" + a:orientation="horizontal" + a:layout_marginLeft="12dp" + a:layout_marginRight="12dp" > + a:src="?attr/media_play" + tools:visibility="gone" /> + a:src="?attr/media_stop" + tools:visibility="gone" /> + a:scaleType="fitCenter" + a:src="?attr/media_repeat_off" /> - \ No newline at end of file + \ No newline at end of file diff --git a/ultrasonic/src/main/res/layout/player_media_info.xml b/ultrasonic/src/main/res/layout/player_media_info.xml new file mode 100644 index 00000000..2c967948 --- /dev/null +++ b/ultrasonic/src/main/res/layout/player_media_info.xml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ultrasonic/src/main/res/layout/player_slider.xml b/ultrasonic/src/main/res/layout/player_slider.xml new file mode 100644 index 00000000..fb5d303c --- /dev/null +++ b/ultrasonic/src/main/res/layout/player_slider.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + \ No newline at end of file From 3fca8bd7a5af510fd29bc2cc133a95ff06c79f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Garc=C3=ADa=20Amor?= Date: Wed, 4 Nov 2020 21:20:57 +0100 Subject: [PATCH 2/2] Improve landscape player view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Óscar García Amor --- .../src/main/res/layout-land/download.xml | 50 ++++--------------- 1 file changed, 10 insertions(+), 40 deletions(-) diff --git a/ultrasonic/src/main/res/layout-land/download.xml b/ultrasonic/src/main/res/layout-land/download.xml index 094c65e2..e1219d57 100644 --- a/ultrasonic/src/main/res/layout-land/download.xml +++ b/ultrasonic/src/main/res/layout-land/download.xml @@ -6,7 +6,7 @@ @@ -22,8 +22,9 @@ a:id="@+id/download_album_art_image" a:layout_width="wrap_content" a:layout_height="wrap_content" - a:scaleType="centerCrop" - a:contentDescription="@string/albumArt"/> + a:alpha="0.2" + a:contentDescription="@string/albumArt" + a:scaleType="centerCrop" /> + + + + + - - - - - - - - - - - - - - - - - - - \ No newline at end of file