Merge pull request #1651 from mfietz/issue/1650-audio-controls-scroll

Audio controls dialog scrollable
This commit is contained in:
Martin Fietz 2016-02-12 10:56:53 +01:00
commit 099e749785
2 changed files with 5 additions and 15 deletions

View File

@ -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);

View File

@ -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>