mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Merge pull request #5434 from RafaelsRamos/imp/speed_sheet_layout_tweak
style: tweak speed/pitch bottom sheet layout
This commit is contained in:
commit
07068a3736
@ -2,7 +2,8 @@
|
|||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/standard_bottom_sheet"
|
android:id="@+id/standard_bottom_sheet"
|
||||||
@ -26,12 +27,12 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical">
|
||||||
android:paddingHorizontal="20dp">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="23dp"
|
||||||
android:text="@string/playback_speed" />
|
android:text="@string/playback_speed" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
@ -39,7 +40,11 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:orientation="horizontal" />
|
android:orientation="horizontal"
|
||||||
|
android:paddingHorizontal="20dp"
|
||||||
|
android:clipToPadding="false"
|
||||||
|
app:layoutManager="LinearLayoutManager"
|
||||||
|
tools:listitem="@layout/slider_label_item"/>
|
||||||
|
|
||||||
<com.google.android.material.slider.Slider
|
<com.google.android.material.slider.Slider
|
||||||
android:id="@+id/speed"
|
android:id="@+id/speed"
|
||||||
@ -48,11 +53,14 @@
|
|||||||
android:stepSize="0.05"
|
android:stepSize="0.05"
|
||||||
android:value="1.0"
|
android:value="1.0"
|
||||||
android:valueFrom="0.2"
|
android:valueFrom="0.2"
|
||||||
android:valueTo="4.0" />
|
android:valueTo="4.0"
|
||||||
|
android:layout_marginHorizontal="10dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="23dp"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
android:text="@string/playback_pitch" />
|
android:text="@string/playback_pitch" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
@ -60,7 +68,11 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:orientation="horizontal" />
|
android:orientation="horizontal"
|
||||||
|
android:paddingHorizontal="20dp"
|
||||||
|
android:clipToPadding="false"
|
||||||
|
app:layoutManager="LinearLayoutManager"
|
||||||
|
tools:listitem="@layout/slider_label_item"/>
|
||||||
|
|
||||||
<com.google.android.material.slider.Slider
|
<com.google.android.material.slider.Slider
|
||||||
android:id="@+id/pitch"
|
android:id="@+id/pitch"
|
||||||
@ -69,7 +81,8 @@
|
|||||||
android:stepSize="0.1"
|
android:stepSize="0.1"
|
||||||
android:value="1.0"
|
android:value="1.0"
|
||||||
android:valueFrom="0.5"
|
android:valueFrom="0.5"
|
||||||
android:valueTo="2.0" />
|
android:valueTo="2.0"
|
||||||
|
android:layout_marginHorizontal="10dp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -78,9 +91,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginHorizontal="20dp"
|
android:layout_marginHorizontal="17dp"
|
||||||
android:layout_marginTop="10dp"
|
android:paddingHorizontal="5dp"
|
||||||
android:paddingHorizontal="10dp"
|
|
||||||
android:text="@string/skip_silence" />
|
android:text="@string/skip_silence" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user