From a6c55f1c0e1f7fe1c37a7f3c6aeda61dc38e2654 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Wed, 20 May 2020 10:58:30 +0200 Subject: [PATCH] More spacing for playback controls --- app/src/main/res/layout/audioplayer_fragment.xml | 16 ++++++++-------- core/src/main/res/values/dimens.xml | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/audioplayer_fragment.xml b/app/src/main/res/layout/audioplayer_fragment.xml index 1935ce36c..37c30b4dd 100644 --- a/app/src/main/res/layout/audioplayer_fragment.xml +++ b/app/src/main/res/layout/audioplayer_fragment.xml @@ -107,10 +107,10 @@ android:id="@+id/butPlay" android:layout_width="@dimen/audioplayer_playercontrols_length_big" android:layout_height="@dimen/audioplayer_playercontrols_length_big" - android:layout_marginLeft="8dp" - android:layout_marginStart="8dp" - android:layout_marginRight="8dp" - android:layout_marginEnd="8dp" + android:layout_marginLeft="@dimen/audioplayer_playercontrols_margin" + android:layout_marginStart="@dimen/audioplayer_playercontrols_margin" + android:layout_marginRight="@dimen/audioplayer_playercontrols_margin" + android:layout_marginEnd="@dimen/audioplayer_playercontrols_margin" android:padding="8dp" android:layout_centerHorizontal="true" android:layout_centerVertical="true" @@ -145,8 +145,8 @@ android:layout_height="@dimen/audioplayer_playercontrols_length" android:layout_toLeftOf="@id/butPlay" android:layout_toStartOf="@id/butPlay" - android:layout_marginLeft="8dp" - android:layout_marginStart="8dp" + android:layout_marginLeft="@dimen/audioplayer_playercontrols_margin" + android:layout_marginStart="@dimen/audioplayer_playercontrols_margin" android:layout_centerVertical="true" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/rewind_label" @@ -201,8 +201,8 @@ android:layout_height="@dimen/audioplayer_playercontrols_length" android:layout_toRightOf="@id/butPlay" android:layout_toEndOf="@id/butPlay" - android:layout_marginRight="8dp" - android:layout_marginEnd="8dp" + android:layout_marginRight="@dimen/audioplayer_playercontrols_margin" + android:layout_marginEnd="@dimen/audioplayer_playercontrols_margin" android:layout_centerVertical="true" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/fast_forward_label" diff --git a/core/src/main/res/values/dimens.xml b/core/src/main/res/values/dimens.xml index cfb272ad9..41a24f6fa 100644 --- a/core/src/main/res/values/dimens.xml +++ b/core/src/main/res/values/dimens.xml @@ -31,6 +31,7 @@ 48dp 64dp + 12dp 16dp 12dp