1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-17 23:34:54 +00:00
NewPipe/app/src/main/res/layout/dialog_playback_parameter.xml

528 lines
23 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2022-03-04 20:33:21 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="false"
android:paddingStart="6dp"
android:paddingTop="4dp"
android:paddingEnd="6dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbars="vertical">
<!-- START HERE -->
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/tempoControlText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
2020-10-09 18:24:02 +00:00
android:gravity="center"
android:text="@string/playback_tempo"
android:textColor="?attr/colorAccent"
2020-10-09 18:24:02 +00:00
android:textStyle="bold" />
<RelativeLayout
android:id="@+id/tempoControl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_below="@id/tempoControlText"
android:layout_marginTop="1dp"
2020-10-09 18:24:02 +00:00
android:orientation="horizontal">
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/tempoStepDown"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:gravity="center"
android:text="--%"
android:textColor="?attr/colorAccent"
2020-10-09 18:24:02 +00:00
android:textStyle="bold"
2022-02-17 09:28:50 +00:00
tools:ignore="HardcodedText"
tools:text="-5%" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
2020-10-09 18:24:02 +00:00
android:layout_toStartOf="@id/tempoStepUp"
android:layout_toEndOf="@id/tempoStepDown"
android:orientation="horizontal">
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/tempoMinimumText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_alignParentStart="true"
android:layout_marginStart="4dp"
android:gravity="center"
android:text="-.--x"
android:textColor="?attr/colorAccent"
2022-02-17 09:28:50 +00:00
tools:ignore="HardcodedText"
tools:text="1.00x" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/tempoCurrentText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_centerHorizontal="true"
android:gravity="center"
android:text="---%"
android:textColor="?attr/colorAccent"
android:textStyle="bold"
2022-02-17 09:28:50 +00:00
tools:ignore="HardcodedText"
tools:text="100%" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/tempoMaximumText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_alignParentEnd="true"
android:layout_marginEnd="4dp"
android:gravity="center"
android:text="---%"
android:textColor="?attr/colorAccent"
2022-02-17 09:28:50 +00:00
tools:ignore="HardcodedText"
tools:text="300%" />
2019-10-04 12:59:08 +00:00
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/tempoSeekbar"
style="@style/Widget.AppCompat.SeekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tempoCurrentText"
android:paddingBottom="2dp"
2020-10-09 18:24:02 +00:00
tools:progress="50" />
</RelativeLayout>
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/tempoStepUp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="4dp"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:gravity="center"
android:text="+-%"
android:textColor="?attr/colorAccent"
2020-10-09 18:24:02 +00:00
android:textStyle="bold"
2022-02-17 09:28:50 +00:00
tools:ignore="HardcodedText"
tools:text="+5%" />
</RelativeLayout>
<View
android:id="@+id/separatorPitch"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@id/tempoControl"
android:layout_marginStart="12dp"
2022-03-04 20:33:21 +00:00
android:layout_marginTop="5dp"
android:layout_marginEnd="12dp"
2022-03-04 20:33:21 +00:00
android:layout_marginBottom="5dp"
2020-10-09 18:24:02 +00:00
android:background="?attr/separator_color" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchControlText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_below="@id/separatorPitch"
android:layout_centerHorizontal="true"
2020-10-09 18:24:02 +00:00
android:gravity="center"
android:text="@string/playback_pitch"
android:textColor="?attr/colorAccent"
2020-10-09 18:24:02 +00:00
android:textStyle="bold" />
<ImageView
android:id="@+id/pitchToogleControlModes"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_below="@id/separatorPitch"
android:layout_alignParentEnd="true"
android:clickable="true"
android:focusable="true"
app:srcCompat="@drawable/ic_expand_more"
tools:ignore="ContentDescription" />
<LinearLayout
android:id="@+id/pitchControlModeTabs"
android:layout_width="match_parent"
android:layout_height="22dp"
android:layout_below="@id/pitchControlText"
android:layout_marginStart="22dp"
android:layout_marginEnd="22dp"
android:orientation="horizontal"
android:visibility="gone"
tools:visibility="visible">
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchControlModePercent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:text="@string/percent"
android:textColor="?attr/colorAccent" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchControlModeSemitone"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:text="@string/semitone"
android:textColor="?attr/colorAccent" />
</LinearLayout>
<RelativeLayout
android:id="@+id/pitchControlContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/pitchControlModeTabs"
android:layout_marginTop="1dp">
<RelativeLayout
android:id="@+id/pitchPercentControl"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:orientation="horizontal">
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchPercentStepDown"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:text="--%"
android:textColor="?attr/colorAccent"
android:textStyle="bold"
2022-02-17 09:28:50 +00:00
tools:ignore="HardcodedText"
tools:text="-5%" />
<RelativeLayout
android:id="@+id/pitchPercentDisplay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_toStartOf="@+id/pitchPercentStepUp"
android:layout_toEndOf="@+id/pitchPercentStepDown"
android:orientation="horizontal">
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchPercentMinimumText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="4dp"
android:gravity="center"
android:text="---%"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText"
tools:text="25%" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchPercentCurrentText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:gravity="center"
android:text="---%"
android:textColor="?attr/colorAccent"
android:textStyle="bold"
tools:ignore="HardcodedText"
tools:text="100%" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchPercentMaximumText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="4dp"
android:gravity="center"
android:text="---%"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText"
tools:text="300%" />
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/pitchPercentSeekbar"
style="@style/Widget.AppCompat.SeekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/pitchPercentCurrentText"
android:paddingBottom="2dp"
tools:progress="50" />
</RelativeLayout>
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchPercentStepUp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
2020-10-09 18:24:02 +00:00
android:layout_marginEnd="4dp"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:text="+-%"
android:textColor="?attr/colorAccent"
android:textStyle="bold"
2022-02-17 09:28:50 +00:00
tools:ignore="HardcodedText"
tools:text="+5%" />
</RelativeLayout>
2021-12-21 17:17:48 +00:00
<RelativeLayout
android:id="@+id/pitchSemitoneControl"
2021-12-21 17:17:48 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2022-03-04 20:33:21 +00:00
android:orientation="horizontal"
tools:visibility="gone">
2021-12-21 17:17:48 +00:00
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchSemitoneStepDown"
android:layout_width="24dp"
android:layout_height="match_parent"
2021-12-21 17:17:48 +00:00
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2021-12-21 17:17:48 +00:00
android:gravity="center"
android:text="♭"
2021-12-21 17:17:48 +00:00
android:textColor="?attr/colorAccent"
android:textSize="24sp"
2021-12-21 17:17:48 +00:00
android:textStyle="bold"
tools:ignore="HardcodedText" />
<RelativeLayout
android:id="@+id/pitchSemitoneDisplay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_toStartOf="@+id/pitchSemitoneStepUp"
android:layout_toEndOf="@+id/pitchSemitoneStepDown"
android:orientation="horizontal">
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchSemitoneMinimumText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="4dp"
android:gravity="center"
android:text="-12"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchSemitoneCurrentText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:gravity="center"
android:textColor="?attr/colorAccent"
android:textStyle="bold"
2022-03-04 20:33:21 +00:00
tools:text="0"
tools:ignore="RelativeOverlap" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchSemitoneMaximumText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="4dp"
android:gravity="center"
android:text="+12"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText" />
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/pitchSemitoneSeekbar"
style="@style/Widget.AppCompat.SeekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/pitchSemitoneCurrentText"
android:max="24"
android:paddingBottom="2dp"
android:progress="12" />
</RelativeLayout>
2021-12-21 17:17:48 +00:00
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/pitchSemitoneStepUp"
android:layout_width="24dp"
android:layout_height="match_parent"
2021-12-21 17:17:48 +00:00
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
2021-12-21 17:17:48 +00:00
android:layout_marginEnd="4dp"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2021-12-21 17:17:48 +00:00
android:gravity="center"
android:text="♯"
2021-12-21 17:17:48 +00:00
android:textColor="?attr/colorAccent"
android:textSize="20sp"
android:textStyle="bold"
2022-02-17 09:28:50 +00:00
tools:ignore="HardcodedText" />
2021-12-21 17:17:48 +00:00
</RelativeLayout>
</RelativeLayout>
<View
android:id="@+id/separatorStepSizeSelector"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/pitchControlContainer"
android:layout_marginStart="12dp"
2022-03-04 20:33:21 +00:00
android:layout_marginTop="5dp"
android:layout_marginEnd="12dp"
2022-03-04 20:33:21 +00:00
android:layout_marginBottom="5dp"
2020-10-09 18:24:02 +00:00
android:background="?attr/separator_color" />
<LinearLayout
android:id="@+id/stepSizeSelector"
android:layout_width="match_parent"
2022-03-01 20:19:30 +00:00
android:layout_height="30dp"
2020-10-09 18:24:02 +00:00
android:layout_below="@id/separatorStepSizeSelector"
android:orientation="horizontal">
<org.schabi.newpipe.views.NewPipeTextView
2021-12-21 17:17:48 +00:00
android:id="@+id/playback_step_type"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
2020-10-09 18:24:02 +00:00
android:clickable="false"
android:gravity="center"
android:text="@string/playback_step"
2020-10-09 18:24:02 +00:00
android:textColor="?attr/colorAccent"
android:textStyle="bold" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/stepSizeOnePercent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:gravity="center"
2022-03-04 20:33:21 +00:00
android:textColor="?attr/colorAccent"
tools:text="1%" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/stepSizeFivePercent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:gravity="center"
2022-03-04 20:33:21 +00:00
android:textColor="?attr/colorAccent"
tools:text="5%" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/stepSizeTenPercent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:gravity="center"
2022-03-04 20:33:21 +00:00
android:textColor="?attr/colorAccent"
tools:text="10%" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/stepSizeTwentyFivePercent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:gravity="center"
2022-03-04 20:33:21 +00:00
android:textColor="?attr/colorAccent"
tools:text="25%" />
2022-03-04 20:33:21 +00:00
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/stepSizeOneHundredPercent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:gravity="center"
2022-03-04 20:33:21 +00:00
android:textColor="?attr/colorAccent"
tools:text="100%" />
</LinearLayout>
<View
android:id="@+id/separatorCheckbox"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/stepSizeSelector"
android:layout_marginStart="12dp"
2022-03-04 20:33:21 +00:00
android:layout_marginTop="5dp"
android:layout_marginEnd="12dp"
2022-03-04 20:33:21 +00:00
android:layout_marginBottom="5dp"
2020-10-09 18:24:02 +00:00
android:background="?attr/separator_color" />
<LinearLayout
android:id="@+id/additionalOptions"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_below="@id/separatorCheckbox"
android:orientation="vertical">
<CheckBox
android:id="@+id/unhookCheckbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="false"
android:clickable="true"
android:focusable="true"
android:text="@string/unhook_checkbox" />
<CheckBox
android:id="@+id/skipSilenceCheckbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="false"
android:clickable="true"
android:focusable="true"
android:text="@string/skip_silence_checkbox" />
2021-12-21 17:17:48 +00:00
</LinearLayout>
<!-- END HERE -->
</RelativeLayout>
2020-10-09 18:24:02 +00:00
</ScrollView>