Merge pull request #5434 from RafaelsRamos/imp/speed_sheet_layout_tweak

style: tweak speed/pitch bottom sheet layout
This commit is contained in:
Bnyro 2024-01-06 13:59:24 +01:00 committed by GitHub
commit 07068a3736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,8 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
<FrameLayout
android:id="@+id/standard_bottom_sheet"
@ -26,12 +27,12 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingHorizontal="20dp">
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="23dp"
android:text="@string/playback_speed" />
<androidx.recyclerview.widget.RecyclerView
@ -39,7 +40,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
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
android:id="@+id/speed"
@ -48,11 +53,14 @@
android:stepSize="0.05"
android:value="1.0"
android:valueFrom="0.2"
android:valueTo="4.0" />
android:valueTo="4.0"
android:layout_marginHorizontal="10dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="23dp"
android:layout_marginTop="10dp"
android:text="@string/playback_pitch" />
<androidx.recyclerview.widget.RecyclerView
@ -60,7 +68,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
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
android:id="@+id/pitch"
@ -69,7 +81,8 @@
android:stepSize="0.1"
android:value="1.0"
android:valueFrom="0.5"
android:valueTo="2.0" />
android:valueTo="2.0"
android:layout_marginHorizontal="10dp" />
</LinearLayout>
@ -78,9 +91,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="10dp"
android:paddingHorizontal="10dp"
android:layout_marginHorizontal="17dp"
android:paddingHorizontal="5dp"
android:text="@string/skip_silence" />
</LinearLayout>