PlayerAndroid/app/src/main/res/layout/fragment_volume.xml

54 lines
2.4 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-01-03 12:40:42 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-07-27 13:07:33 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2018-11-30 01:06:16 +00:00
android:id="@+id/viewGroup"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
2019-11-04 18:43:54 +00:00
android:orientation="horizontal"
2020-01-03 12:40:42 +00:00
android:paddingStart="16dp"
android:paddingEnd="16dp">
2018-07-27 13:07:33 +00:00
2019-09-28 17:52:49 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-11-30 01:06:16 +00:00
android:id="@+id/volumeDown"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="?roundSelector"
2020-01-03 12:40:42 +00:00
android:padding="12dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/volumeSeekBar"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
2020-07-19 21:00:30 +00:00
app:srcCompat="@drawable/ic_volume_down"
2019-12-01 11:28:57 +00:00
app:tint="?attr/colorControlNormal" />
2018-07-27 13:07:33 +00:00
2020-05-20 21:30:13 +00:00
<androidx.appcompat.widget.AppCompatSeekBar
2018-11-30 01:06:16 +00:00
android:id="@+id/volumeSeekBar"
2020-01-03 12:40:42 +00:00
android:layout_width="0dp"
2018-07-27 13:07:33 +00:00
android:layout_height="wrap_content"
2019-02-17 17:01:35 +00:00
android:layout_weight="1"
android:maxHeight="2dp"
2019-07-27 05:05:52 +00:00
android:progressDrawable="@drawable/color_progress_seek"
2020-01-03 12:40:42 +00:00
app:layout_constraintBottom_toBottomOf="@+id/volumeDown"
app:layout_constraintEnd_toStartOf="@+id/volumeUp"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/volumeDown"
2020-05-20 21:30:13 +00:00
app:layout_constraintTop_toTopOf="@+id/volumeDown" />
2018-07-27 13:07:33 +00:00
2019-09-28 17:52:49 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-11-30 01:06:16 +00:00
android:id="@+id/volumeUp"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="?roundSelector"
2020-01-03 12:40:42 +00:00
android:padding="12dp"
app:layout_constraintBottom_toBottomOf="@+id/volumeSeekBar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/volumeSeekBar"
app:layout_constraintTop_toTopOf="@+id/volumeSeekBar"
2020-07-19 21:00:30 +00:00
app:srcCompat="@drawable/ic_volume_up"
2019-12-01 11:28:57 +00:00
app:tint="?attr/colorControlNormal" />
2020-01-03 12:40:42 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>