PlayerAndroid/app/src/main/res/layout/fragment_material_playback_...

206 lines
8.6 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-08-01 14:13:00 +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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/playback_controls"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="vertical"
tools:ignore="MissingPrefix">
<RelativeLayout
2019-08-01 14:13:00 +00:00
android:id="@+id/progressContainer"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2019-03-03 09:20:15 +00:00
android:layout_height="@dimen/progress_slider_height"
android:paddingStart="12dp"
2019-08-01 14:13:00 +00:00
android:paddingEnd="12dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2019-09-29 18:58:10 +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"
android:fontFamily="sans-serif-medium"
android:gravity="center_vertical|left|end"
android:paddingLeft="8dp"
android:singleLine="true"
2019-09-29 18:58:10 +00:00
android:textColor="?colorOnSecondary"
android:textSize="12sp"
2019-09-29 18:58:10 +00:00
tools:ignore="RtlHardcoded,RtlSymmetry"
tools:text="00:22" />
2019-09-29 18:58:10 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/songTotalTime"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:fontFamily="sans-serif-medium"
android:gravity="center_vertical|right|end"
android:paddingRight="8dp"
android:singleLine="true"
2019-09-29 18:58:10 +00:00
android:textColor="?colorOnSecondary"
android:textSize="12sp"
2019-09-29 18:58:10 +00:00
tools:ignore="RtlHardcoded,RtlSymmetry"
tools:text="00:22" />
2018-07-27 13:07:33 +00:00
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/progressSlider"
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/songTotalTime"
android:layout_toRightOf="@id/songCurrentProgress"
android:maxHeight="3dp"
2019-07-27 05:05:52 +00:00
android:progressDrawable="@drawable/color_progress_seek"
android:splitTrack="false"
tools:ignore="RtlHardcoded,UnusedAttribute"
tools:progress="20" />
</RelativeLayout>
2018-07-27 13:07:33 +00:00
<LinearLayout
2019-08-01 14:13:00 +00:00
android:id="@id/titleContainer"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
2019-08-01 14:13:00 +00:00
app:layout_constraintBottom_toTopOf="@+id/playerMediaControllerContainer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/progressContainer">
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatTextView
2018-07-27 13:07:33 +00:00
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
android:gravity="center"
android:marqueeRepeatLimit="marquee_forever"
2018-09-23 10:04:43 +00:00
android:paddingStart="12dp"
2018-12-05 12:31:56 +00:00
android:paddingEnd="12dp"
2018-07-27 13:07:33 +00:00
android:scrollHorizontally="true"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textColor="?android:attr/textColorPrimary"
tools:text="Title" />
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatTextView
2018-07-27 13:07:33 +00:00
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:ellipsize="end"
android:gravity="center"
android:maxLines="1"
2018-09-23 10:04:43 +00:00
android:paddingStart="12dp"
2019-08-01 14:13:00 +00:00
android:paddingTop="24dp"
2018-12-05 12:31:56 +00:00
android:paddingEnd="12dp"
2018-07-27 13:07:33 +00:00
android:textColor="?android:attr/textColorSecondary" />
</LinearLayout>
<RelativeLayout
2019-08-01 14:13:00 +00:00
android:id="@+id/playerMediaControllerContainer"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2019-08-01 14:13:00 +00:00
android:layout_height="wrap_content"
android:layoutDirection="ltr"
android:paddingStart="4dp"
android:paddingEnd="4dp"
app:layout_constraintBottom_toTopOf="@+id/volumeFragmentContainer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/titleContainer"
tools:ignore="ContentDescription,UnusedAttribute"
tools:showIn="@layout/fragment_player_playback_controls">
2018-07-27 13:07:33 +00:00
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/previousButton"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:layout_toStartOf="@+id/dummy_fab"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_skip_previous_white_24dp"
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/nextButton"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="8dp"
android:layout_toEndOf="@+id/dummy_fab"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_skip_next_white_24dp"
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/repeatButton"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_repeat_white_24dp"
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/shuffleButton"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_shuffle_white_24dp"
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
<Space
android:id="@+id/dummy_fab"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_centerInParent="true" />
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/playPauseButton"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="?attr/roundSelector"
2019-08-04 15:56:32 +00:00
app:srcCompat="@drawable/ic_pause_white_64dp"
2018-07-27 13:07:33 +00:00
tools:tint="@color/md_black_1000" />
</RelativeLayout>
2019-08-01 14:13:00 +00:00
<FrameLayout
android:id="@+id/volumeFragmentContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingStart="8dp"
android:paddingEnd="8dp"
app:layout_constraintBottom_toBottomOf="parent"
tools:backgroundTint="@color/md_red_400"
tools:layout_height="52dp" />
</androidx.constraintlayout.widget.ConstraintLayout>