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

156 lines
6.2 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/playback_controls"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:ignore="MissingPrefix">
<RelativeLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="@dimen/progress_container_height"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:paddingStart="12dp"
android:paddingEnd="12dp">
2018-07-27 13:07:33 +00:00
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatTextView
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-07-31 09:09:29 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Overline"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:ignore="RtlHardcoded,RtlSymmetry" />
2018-07-27 13:07:33 +00:00
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatTextView
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-07-31 09:09:29 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Overline"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:ignore="RtlHardcoded,RtlSymmetry" />
2018-07-27 13:07:33 +00:00
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/progressSlider"
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:splitTrack="false"
android:thumb="@drawable/switch_square"
tools:ignore="RtlHardcoded,UnusedAttribute"
tools:progress="20" />
</RelativeLayout>
2018-07-27 13:07:33 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical"
2018-12-04 15:34:26 +00:00
android:paddingStart="16dp"
android:paddingEnd="16dp">
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/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/md_red_500"
android:ellipsize="end"
android:fontFeatureSettings="smcp"
android:letterSpacing="0.1"
android:maxLines="1"
android:padding="4dp"
android:textAllCaps="true"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textSize="12sp"
2018-12-04 15:34:26 +00:00
android:textStyle="bold"
2018-07-27 13:07:33 +00:00
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/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:background="@color/md_red_500"
android:ellipsize="end"
android:fontFeatureSettings="smcp"
android:letterSpacing="0.2"
android:maxLines="1"
android:padding="4dp"
android:textAllCaps="true"
android:textColor="?android:attr/textColorPrimary"
android:textStyle="bold"
tools:text="Title" />
</LinearLayout>
<RelativeLayout
android:id="@+id/player_media_controller_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingStart="16dp"
2018-12-04 15:34:26 +00:00
android:paddingEnd="16dp"
2018-07-27 13:07:33 +00:00
tools:ignore="ContentDescription,UnusedAttribute">
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/playPauseButton"
2018-07-27 13:07:33 +00:00
android:layout_width="52dp"
android:layout_height="52dp"
android:layout_centerVertical="true"
android:background="?colorAccent"
android:foreground="?attr/rectSelector"
2018-11-05 13:53:07 +00:00
android:padding="12dp"
2018-07-27 13:07:33 +00:00
android:scaleType="fitCenter"
tools:ignore="MissingPrefix"
tools:src="@drawable/ic_pause_white_24dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp">
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/repeatButton"
2018-07-27 13:07:33 +00:00
android:layout_width="72dp"
android:layout_height="72dp"
android:background="?attr/roundSelector"
android:padding="22dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_repeat_white_24dp"
tools:ignore="MissingPrefix" />
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/shuffleButton"
2018-07-27 13:07:33 +00:00
android:layout_width="72dp"
android:layout_height="72dp"
android:background="?attr/roundSelector"
android:padding="22dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_shuffle_white_24dp"
tools:ignore="MissingPrefix" />
</LinearLayout>
</RelativeLayout>
<include layout="@layout/volume_controls" />
2018-07-27 13:07:33 +00:00
</LinearLayout>