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

157 lines
6.8 KiB
XML
Raw Normal View History

2020-05-03 19:24:11 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
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:gravity="center_vertical"
android:orientation="vertical"
2020-05-13 23:11:58 +00:00
android:paddingBottom="8dp"
2020-05-03 19:24:11 +00:00
tools:ignore="MissingPrefix">
<RelativeLayout
2020-05-14 15:27:42 +00:00
android:id="@+id/progressContainer"
android:layout_width="match_parent"
android:layout_height="@dimen/progress_container_height"
android:background="@color/twenty_percent_black_overlay"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-05-14 15:27:42 +00:00
app:layout_constraintTop_toTopOf="parent">
2020-05-03 19:24:11 +00:00
2020-05-14 15:27:42 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/songCurrentProgress"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
2020-05-14 15:27:42 +00:00
android:gravity="center_vertical|left|end"
android:paddingLeft="8dp"
2020-05-14 15:27:42 +00:00
android:singleLine="true"
android:textColor="?colorOnSecondary"
2020-05-14 15:27:42 +00:00
android:textSize="12sp"
tools:ignore="RtlHardcoded,RtlSymmetry"
tools:text="@tools:sample/date/hhmmss" />
2020-05-03 19:24:11 +00:00
<com.google.android.material.textview.MaterialTextView
2020-05-14 15:27:42 +00:00
android:id="@+id/songTotalTime"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
2020-05-14 15:27:42 +00:00
android:gravity="center_vertical|right|end"
android:paddingRight="8dp"
2020-05-03 19:24:11 +00:00
android:singleLine="true"
android:textColor="?colorOnSecondary"
2020-05-14 15:27:42 +00:00
android:textSize="12sp"
tools:ignore="RtlHardcoded,RtlSymmetry"
tools:text="@tools:sample/date/hhmmss" />
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/progressSlider"
style="@style/MusicProgressSlider"
android:layout_height="match_parent"
android:layout_toLeftOf="@id/songTotalTime"
android:layout_toRightOf="@id/songCurrentProgress"
tools:ignore="RtlHardcoded,UnusedAttribute" />
</RelativeLayout>
2020-05-03 19:24:11 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/repeatButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="@+id/previousButton"
app:layout_constraintEnd_toStartOf="@+id/previousButton"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/previousButton"
2020-07-19 21:00:30 +00:00
app:srcCompat="@drawable/ic_repeat"
2020-05-03 19:24:11 +00:00
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/previousButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="@+id/playPauseButton"
app:layout_constraintEnd_toStartOf="@+id/playPauseButton"
app:layout_constraintStart_toEndOf="@+id/repeatButton"
app:layout_constraintTop_toTopOf="@+id/playPauseButton"
2020-07-19 21:00:30 +00:00
app:srcCompat="@drawable/ic_skip_previous"
2020-05-03 19:24:11 +00:00
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/playPauseButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-05-14 15:27:42 +00:00
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
2020-05-03 19:24:11 +00:00
android:background="?attr/roundSelector"
2020-05-14 15:27:42 +00:00
app:layout_constraintBottom_toTopOf="@+id/songInfo"
2020-05-03 19:24:11 +00:00
app:layout_constraintEnd_toStartOf="@+id/nextButton"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/previousButton"
2020-05-14 15:27:42 +00:00
app:layout_constraintTop_toBottomOf="@+id/progressContainer"
2020-07-19 21:00:30 +00:00
app:srcCompat="@drawable/ic_pause"
2020-05-03 19:24:11 +00:00
tools:tint="@color/md_black_1000" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/nextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="@+id/playPauseButton"
app:layout_constraintEnd_toStartOf="@+id/shuffleButton"
app:layout_constraintStart_toEndOf="@+id/playPauseButton"
app:layout_constraintTop_toTopOf="@+id/playPauseButton"
2020-07-19 21:00:30 +00:00
app:srcCompat="@drawable/ic_skip_next"
2020-05-03 19:24:11 +00:00
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/shuffleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="@+id/nextButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/nextButton"
app:layout_constraintTop_toTopOf="@+id/nextButton"
2020-07-19 21:00:30 +00:00
app:srcCompat="@drawable/ic_shuffle"
2020-05-03 19:24:11 +00:00
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2020-05-14 15:27:42 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/songInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:ellipsize="end"
android:gravity="center"
android:maxLines="2"
android:paddingHorizontal="16dp"
android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp"
app:layout_constraintBottom_toTopOf="@+id/volumeFragmentContainer"
app:layout_constraintTop_toBottomOf="@+id/playPauseButton"
tools:text="@tools:sample/lorem/random" />
2020-05-03 19:24:11 +00:00
<FrameLayout
android:id="@+id/volumeFragmentContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
app:layout_constraintBottom_toBottomOf="parent"
tools:background="@color/md_red_400"
tools:layout_height="52dp" />
</androidx.constraintlayout.widget.ConstraintLayout>