diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-02-12 10:56:53 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-02-12 10:56:53 +0100 |
commit | 099e7497857a22888511b0d6392e23e5b19b6287 (patch) | |
tree | c940b47c49f03e34d2f470de4c04362cb221825a | |
parent | e8e023a6f689dab5b981334808b876ee5429b8a0 (diff) | |
parent | d7eac77d26e39a48954b5ede712cee3087510991 (diff) | |
download | AntennaPod-099e7497857a22888511b0d6392e23e5b19b6287.zip |
Merge pull request #1651 from mfietz/issue/1650-audio-controls-scroll
Audio controls dialog scrollable
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java | 2 | ||||
-rw-r--r-- | 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 @@ <LinearLayout android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="12dp" - android:layout_marginLeft="24dp"> + android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" @@ -30,9 +28,7 @@ <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="-12dp" - android:layout_marginLeft="24dp" - android:layout_marginRight="24dp"> + android:layout_marginTop="-12dp"> <Button android:id="@+id/butDecSpeed" @@ -74,7 +70,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dp" - android:layout_marginLeft="24dp" style="@style/AntennaPod.TextView.ListItemPrimaryTitle" android:text="@string/volume" android:textStyle="bold"/> @@ -83,8 +78,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="-12dp" - android:layout_marginLeft="24dp" - android:layout_marginRight="24dp" + android:layout_marginLeft="8dp" android:orientation="horizontal" android:gravity="center"> @@ -106,8 +100,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" - android:layout_marginLeft="24dp" - android:layout_marginRight="24dp" + android:layout_marginLeft="8dp" android:orientation="horizontal" android:gravity="center"> @@ -129,7 +122,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:layout_marginLeft="24dp" style="@style/AntennaPod.TextView.ListItemPrimaryTitle" android:text="@string/audio_effects" android:textStyle="bold"/> @@ -139,8 +131,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-12dp" - android:layout_marginLeft="24dp" - android:layout_marginRight="24dp" android:text="@string/stereo_to_mono" /> </LinearLayout> |