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

158 lines
6.4 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2018-07-27 13:07:33 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:focusable="true">
2019-12-05 18:18:54 +00:00
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/colorSurface" />
2018-07-27 13:07:33 +00:00
<fragment
2018-12-05 12:13:50 +00:00
android:id="@+id/playerAlbumCoverFragment"
2019-04-20 05:29:45 +00:00
android:name="code.name.monkey.retromusic.fragments.player.PlayerAlbumCoverFragment"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2019-09-09 13:38:49 +00:00
android:layout_height="match_parent"
2018-11-20 15:27:59 +00:00
tools:layout="@layout/fragment_album_full_cover" />
2018-07-27 13:07:33 +00:00
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-01-03 18:40:57 +00:00
android:background="#C0000000" />
2018-07-27 13:07:33 +00:00
<LinearLayout
2018-11-28 05:37:10 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
<fragment
android:id="@+id/playbackControlsFragment"
android:name="code.name.monkey.retromusic.fragments.player.full.FullPlaybackControlsFragment"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
tools:layout="@layout/fragment_full_player_controls" />
2018-11-05 13:53:07 +00:00
</LinearLayout>
<LinearLayout
android:id="@+id/toolbar_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include layout="@layout/status_bar" />
</FrameLayout>
2019-09-29 08:37:57 +00:00
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/playerToolbar"
style="@style/Toolbar"
2019-06-23 17:07:33 +00:00
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black_24dp"
app:navigationIcon="@drawable/ic_keyboard_arrow_down_black_24dp">
<androidx.constraintlayout.widget.ConstraintLayout
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2019-09-29 08:37:57 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/nextSongLabel"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:alpha="0.75"
android:ellipsize="end"
android:gravity="center"
android:maxLines="1"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/next_song"
2020-01-03 12:40:42 +00:00
android:textAppearance="@style/TextViewSubtitle2"
android:textColor="@color/md_white_1000"
app:layout_constraintEnd_toStartOf="@+id/artistImage"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2019-09-29 08:37:57 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/nextSong"
android:layout_width="0dp"
android:layout_height="wrap_content"
2020-01-03 18:40:57 +00:00
android:layout_marginTop="4dp"
android:ellipsize="end"
android:gravity="center"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:singleLine="true"
2020-01-03 12:40:42 +00:00
android:textAppearance="@style/TextViewSubtitle1"
android:textColor="@color/md_white_1000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/artistImage"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/nextSongLabel"
2020-01-03 12:40:42 +00:00
tools:text="@tools:sample/lorem/random" />
<code.name.monkey.retromusic.views.CircularImageView
android:id="@+id/artistImage"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_gravity="end"
android:layout_marginEnd="8dp"
android:elevation="10dp"
app:civ_border="false"
app:civ_shadow="false"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/default_artist_art" />
</androidx.constraintlayout.widget.ConstraintLayout>
2019-09-29 08:37:57 +00:00
</com.google.android.material.appbar.MaterialToolbar>
2019-03-25 12:43:43 +00:00
<FrameLayout
android:id="@+id/player_lyrics"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alpha="0"
android:clipToPadding="false"
android:elevation="20dp"
android:padding="16dp"
android:visibility="gone"
tools:visibility="visible">
<TextView
android:id="@+id/player_lyrics_line1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:shadowColor="@color/md_black_1000"
android:shadowRadius="4"
android:textAlignment="center"
android:textColor="@color/md_white_1000"
android:textSize="22sp"
android:visibility="gone" />
<TextView
android:id="@+id/player_lyrics_line2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:shadowColor="@color/md_black_1000"
android:shadowRadius="4"
android:textAlignment="center"
android:textColor="@color/md_white_1000"
android:textSize="22sp" />
</FrameLayout>
</LinearLayout>
2018-07-27 13:07:33 +00:00
</FrameLayout>