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

138 lines
6.3 KiB
XML
Raw Normal View History

2019-10-04 10:58:28 +00:00
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2019 Hemanth Savarala.
~
~ Licensed under the GNU General Public License v3
~
~ This is free software: you can redistribute it and/or modify it under
~ the terms of the GNU General Public License as published by
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~ See the GNU General Public License for more details.
-->
<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="wrap_content"
2019-10-09 12:31:31 +00:00
android:clickable="true"
android:focusable="true"
2019-10-04 10:58:28 +00:00
android:orientation="vertical">
2019-12-05 18:18:54 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2019-10-04 10:58:28 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-05 18:18:54 +00:00
android:background="?attr/colorSurface"
2019-10-04 10:58:28 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2019-12-05 18:18:54 +00:00
<FrameLayout
android:id="@+id/toolbarContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2019-10-04 10:58:28 +00:00
2019-12-05 18:18:54 +00:00
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/playerToolbar"
style="@style/Toolbar"
android:layout_gravity="bottom"
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black_24dp"
app:navigationIcon="@drawable/ic_keyboard_arrow_down_black_24dp" />
</FrameLayout>
2019-10-04 10:58:28 +00:00
2019-12-05 18:18:54 +00:00
<code.name.monkey.retromusic.views.WidthFitSquareCardView
android:id="@+id/imageContainer"
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_marginStart="16dp"
app:cardCornerRadius="8dp"
app:cardUseCompatPadding="true"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/toolbarContainer">
2019-10-04 10:58:28 +00:00
2019-12-05 18:18:54 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/playerImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
</code.name.monkey.retromusic.views.WidthFitSquareCardView>
<LinearLayout
android:id="@+id/titleContainer"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/text"
app:layout_constraintEnd_toEndOf="parent"
2020-01-06 03:12:32 +00:00
app:layout_constraintStart_toEndOf="@id/imageContainer"
2019-12-05 18:18:54 +00:00
app:layout_constraintTop_toBottomOf="@+id/toolbarContainer">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:textAppearance="@style/TextViewSubtitle1"
tools:text="@tools:sample/lorem/random" />
</LinearLayout>
2019-10-29 06:06:08 +00:00
<com.google.android.material.textview.MaterialTextView
2019-12-05 18:18:54 +00:00
android:id="@+id/text"
android:layout_width="0dp"
2019-10-29 06:06:08 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
2019-12-05 18:18:54 +00:00
android:ellipsize="end"
android:maxLines="2"
android:textAppearance="@style/TextViewBody2"
android:textColor="?android:attr/textColorSecondary"
2020-01-06 03:12:32 +00:00
app:layout_constraintBottom_toTopOf="@+id/songInfo"
2019-12-05 18:18:54 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-01-06 03:12:32 +00:00
app:layout_constraintStart_toEndOf="@id/imageContainer"
2019-12-05 18:18:54 +00:00
app:layout_constraintTop_toBottomOf="@+id/titleContainer"
2020-01-06 03:12:32 +00:00
tools:text="@tools:sample/lorem" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/songInfo"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="8dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="@id/imageContainer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/imageContainer"
app:layout_constraintTop_toBottomOf="@+id/text"
2019-10-29 06:06:08 +00:00
tools:text="@tools:sample/lorem/random" />
2019-10-04 10:58:28 +00:00
2019-12-05 18:18:54 +00:00
<FrameLayout
android:id="@+id/playbackControlsFragmentContainer"
2019-10-04 10:58:28 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-01-06 03:12:32 +00:00
app:layout_constraintTop_toBottomOf="@+id/songInfo">
2019-12-05 18:18:54 +00:00
<fragment
android:id="@+id/playbackControlsFragment"
android:name="code.name.monkey.retromusic.fragments.player.peak.PeakPlayerControlFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:layout="@layout/fragment_peak_control_player" />
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
2019-10-04 10:58:28 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>