From d7eac77d26e39a48954b5ede712cee3087510991 Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Sun, 7 Feb 2016 19:31:54 +0100 Subject: [PATCH] Make audio controls dialog scrollable, adjust margins --- .../activity/MediaplayerActivity.java | 2 +- app/src/main/res/layout/audio_controls.xml | 18 ++++-------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java index bdc210651..d22fad320 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -412,7 +412,7 @@ public abstract class MediaplayerActivity extends AppCompatActivity implements O case R.id.audio_controls: MaterialDialog dialog = new MaterialDialog.Builder(this) .title(R.string.audio_controls) - .customView(R.layout.audio_controls, false) + .customView(R.layout.audio_controls, true) .neutralText(R.string.close_label) .onNeutral((dialog1, which) -> { final SeekBar left = (SeekBar) dialog1.findViewById(R.id.volume_left); diff --git a/app/src/main/res/layout/audio_controls.xml b/app/src/main/res/layout/audio_controls.xml index 7532722dd..852b6e922 100644 --- a/app/src/main/res/layout/audio_controls.xml +++ b/app/src/main/res/layout/audio_controls.xml @@ -7,9 +7,7 @@ + android:layout_height="wrap_content"> + android:layout_marginTop="-12dp">