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

158 lines
6.3 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-10-29 06:06:08 +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:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:focusable="true">
2020-08-13 17:48:49 +00:00
<fragment
2019-02-26 18:08:07 +00:00
android:id="@+id/playerAlbumCoverFragment"
2019-04-20 05:29:45 +00:00
android:name="code.name.monkey.retromusic.fragments.player.PlayerAlbumCoverFragment"
2019-02-26 18:08:07 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-10-29 06:06:08 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
2019-02-26 18:08:07 +00:00
tools:layout="@layout/fragment_player_album_cover" />
<View
2019-08-05 16:13:44 +00:00
android:id="@+id/masked"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-12-12 06:49:33 +00:00
android:background="?attr/colorSurface" />
2018-07-27 13:07:33 +00:00
<ProgressBar
2019-02-26 18:08:07 +00:00
android:id="@+id/progressBar"
2018-07-27 13:07:33 +00:00
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:max="100"
android:progress="80"
android:progressDrawable="@drawable/progress_drawable_vertical"
android:secondaryProgress="100" />
2018-07-27 13:07:33 +00:00
2019-10-29 06:06:08 +00:00
<FrameLayout
android:id="@+id/status_bar"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2019-10-29 06:06:08 +00:00
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2019-10-29 06:06:08 +00:00
<include layout="@layout/status_bar" />
</FrameLayout>
2019-10-29 06:06:08 +00:00
<code.name.monkey.retromusic.views.VerticalTextView
android:id="@+id/playerSongTotalTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
2020-01-06 03:12:32 +00:00
android:ellipsize="end"
android:maxLines="1"
android:paddingStart="16dp"
android:paddingEnd="16dp"
2019-10-29 06:06:08 +00:00
android:textAppearance="@style/TextViewHeadline3"
android:textStyle="bold"
2020-01-06 03:12:32 +00:00
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@+id/playbackControlsFragmentContainer"
app:layout_constraintEnd_toStartOf="@+id/songInfo"
2019-10-29 06:06:08 +00:00
app:layout_constraintTop_toBottomOf="@id/status_bar"
2020-01-06 03:12:32 +00:00
app:layout_constraintVertical_bias="0"
2019-12-22 17:50:25 +00:00
tools:ignore="MissingPrefix"
tools:text="@tools:sample/date/hhmm" />
2019-10-29 06:06:08 +00:00
2020-01-06 03:12:32 +00:00
<code.name.monkey.retromusic.views.VerticalTextView
android:id="@+id/songInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingEnd="16dp"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@+id/playbackControlsFragmentContainer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/status_bar"
app:layout_constraintVertical_bias="0"
tools:ignore="MissingPrefix"
tools:text="@tools:sample/lorem" />
2019-10-29 06:06:08 +00:00
<FrameLayout
android:id="@+id/toolbarContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
2019-10-29 06:06:08 +00:00
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/playerToolbar"
style="@style/Toolbar"
2020-07-19 21:00:30 +00:00
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black"
app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" />
2019-10-29 06:06:08 +00:00
</FrameLayout>
2019-10-29 06:06:08 +00:00
<LinearLayout
android:id="@+id/playbackControlsFragmentContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="vertical"
app:layout_constraintBottom_toTopOf="@id/toolbarContainer"
app:layout_constraintEnd_toEndOf="parent">
2020-08-13 17:48:49 +00:00
<fragment
2019-10-29 06:06:08 +00:00
android:id="@+id/playbackControlsFragment"
android:name="code.name.monkey.retromusic.fragments.player.tiny.TinyPlaybackControlsFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:layout="@layout/fragment_tiny_controls_fragment" />
</LinearLayout>
2019-10-29 06:06:08 +00:00
<code.name.monkey.retromusic.views.VerticalTextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:ellipsize="end"
android:fadingEdge="horizontal"
android:gravity="start"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingBottom="16dp"
android:rotation="0"
android:singleLine="true"
android:textAppearance="@style/TextViewHeadline3"
android:textStyle="bold"
2020-05-18 07:22:18 +00:00
app:layout_constrainedHeight="true"
app:layout_constrainedWidth="true"
2019-10-29 06:06:08 +00:00
app:layout_constraintBottom_toTopOf="@id/toolbarContainer"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/status_bar"
tools:ignore="MissingPrefix"
tools:text="@tools:sample/lorem/random" />
<code.name.monkey.retromusic.views.VerticalTextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:ellipsize="end"
2020-05-18 07:22:18 +00:00
android:fadingEdge="horizontal"
2019-10-29 06:06:08 +00:00
android:gravity="start"
2020-05-18 07:22:18 +00:00
android:maxLines="2"
2019-10-29 06:06:08 +00:00
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:rotation="0"
android:textAppearance="@style/TextViewHeadline6"
2020-05-18 07:22:18 +00:00
app:layout_constrainedHeight="true"
app:layout_constrainedWidth="true"
2019-10-29 06:06:08 +00:00
app:layout_constraintBottom_toTopOf="@id/toolbarContainer"
app:layout_constraintStart_toEndOf="@+id/title"
app:layout_constraintTop_toBottomOf="@id/status_bar"
tools:text="@tools:sample/lorem/random" />
</androidx.constraintlayout.widget.ConstraintLayout>