NewPipe/app/src/main/res/layout/dialog_playback_parameter.xml

380 lines
16 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="false"
android:paddingLeft="@dimen/video_item_search_padding"
2020-10-09 18:24:02 +00:00
android:paddingTop="@dimen/video_item_search_padding"
android:paddingRight="@dimen/video_item_search_padding">
<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 -->
<TextView
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="40dp"
2020-10-09 18:24:02 +00:00
android:layout_below="@id/tempoControlText"
android:layout_marginTop="4dp"
2020-10-09 18:24:02 +00:00
android:orientation="horizontal">
<TextView
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_alignParentLeft="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"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
tools:text="-5%" />
<RelativeLayout
android:id="@+id/tempoDisplay"
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_toLeftOf="@id/tempoStepUp"
2020-10-09 18:24:02 +00:00
android:layout_toEndOf="@id/tempoStepDown"
android:layout_toRightOf="@id/tempoStepDown"
android:orientation="horizontal">
<TextView
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_alignParentLeft="true"
android:layout_marginStart="4dp"
android:layout_marginLeft="4dp"
android:gravity="center"
android:text="-.--x"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
tools:text="1.00x" />
<TextView
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"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
tools:text="100%" />
<TextView
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_alignParentRight="true"
android:layout_marginEnd="4dp"
android:layout_marginRight="4dp"
android:gravity="center"
android:text="---%"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
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="4dp"
2020-10-09 18:24:02 +00:00
tools:progress="50" />
</RelativeLayout>
<TextView
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_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="4dp"
android:layout_marginRight="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"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
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_margin="@dimen/video_item_search_padding"
2020-10-09 18:24:02 +00:00
android:background="?attr/separator_color" />
<TextView
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" />
<RelativeLayout
android:id="@+id/pitchControl"
android:layout_width="match_parent"
android:layout_height="40dp"
2020-10-09 18:24:02 +00:00
android:layout_below="@id/pitchControlText"
android:layout_marginTop="4dp"
2020-10-09 18:24:02 +00:00
android:orientation="horizontal">
<TextView
android:id="@+id/pitchStepDown"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_alignParentStart="true"
android:layout_alignParentLeft="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"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
tools:text="-5%" />
<RelativeLayout
android:id="@+id/pitchDisplay"
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/pitchStepUp"
android:layout_toLeftOf="@+id/pitchStepUp"
2020-10-09 18:24:02 +00:00
android:layout_toEndOf="@+id/pitchStepDown"
android:layout_toRightOf="@+id/pitchStepDown"
android:orientation="horizontal">
<TextView
android:id="@+id/pitchMinimumText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_marginStart="4dp"
android:layout_marginLeft="4dp"
android:gravity="center"
android:text="---%"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
tools:text="25%" />
<TextView
android:id="@+id/pitchCurrentText"
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"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
tools:text="100%" />
<TextView
android:id="@+id/pitchMaximumText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginEnd="4dp"
android:layout_marginRight="4dp"
android:gravity="center"
android:text="---%"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
tools:text="300%" />
2019-10-04 12:59:08 +00:00
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/pitchSeekbar"
style="@style/Widget.AppCompat.SeekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/pitchCurrentText"
android:paddingBottom="4dp"
2020-10-09 18:24:02 +00:00
tools:progress="50" />
</RelativeLayout>
<TextView
android:id="@+id/pitchStepUp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="4dp"
android:layout_marginRight="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"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
tools:text="+5%" />
</RelativeLayout>
<View
android:id="@+id/separatorStepSizeSelector"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/pitchControl"
android:layout_margin="@dimen/video_item_search_padding"
2020-10-09 18:24:02 +00:00
android:background="?attr/separator_color" />
<LinearLayout
android:id="@+id/stepSizeSelector"
android:layout_width="match_parent"
android:layout_height="40dp"
2020-10-09 18:24:02 +00:00
android:layout_below="@id/separatorStepSizeSelector"
android:orientation="horizontal">
<TextView
android:id="@+id/stepSizeText"
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" />
<TextView
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"
android:textColor="?attr/colorAccent" />
<TextView
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"
android:textColor="?attr/colorAccent" />
<TextView
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"
android:textColor="?attr/colorAccent" />
<TextView
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"
android:textColor="?attr/colorAccent" />
<TextView
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"
android:textColor="?attr/colorAccent" />
</LinearLayout>
<View
android:id="@+id/separatorCheckbox"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/stepSizeSelector"
android:layout_margin="@dimen/video_item_search_padding"
2020-10-09 18:24:02 +00:00
android:background="?attr/separator_color" />
<CheckBox
android:id="@+id/unhookCheckbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_below="@id/separatorCheckbox"
android:layout_centerHorizontal="true"
android:checked="false"
android:clickable="true"
android:focusable="true"
android:maxLines="1"
2020-10-09 18:24:02 +00:00
android:text="@string/unhook_checkbox" />
<CheckBox
android:id="@+id/skipSilenceCheckbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_below="@id/unhookCheckbox"
android:layout_centerHorizontal="true"
android:checked="false"
android:clickable="true"
android:focusable="true"
android:maxLines="1"
2020-10-09 18:24:02 +00:00
android:text="@string/skip_silence_checkbox" />
<!-- END HERE -->
</RelativeLayout>
2020-10-09 18:24:02 +00:00
</ScrollView>