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

129 lines
5.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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:attr/windowBackground"
android:clickable="true"
android:focusable="true">
2019-02-26 18:08:07 +00:00
<fragment
android:id="@+id/playerAlbumCoverFragment"
android:name="code.name.monkey.retromusic.ui.fragments.player.PlayerAlbumCoverFragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout="@layout/fragment_player_album_cover" />
<View
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-02-26 18:08:07 +00:00
android:background="#90000000" />
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" />
2018-11-05 13:53:07 +00:00
<code.name.monkey.retromusic.views.FitSystemWindowsLayout
android:id="@+id/safeArea"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-11-05 13:53:07 +00:00
android:layout_height="match_parent">
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
<LinearLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-11-05 13:53:07 +00:00
android:layout_height="match_parent"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
<include layout="@layout/status_bar" />
</FrameLayout>
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
<LinearLayout
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
2018-11-05 13:53:07 +00:00
android:orientation="horizontal"
android:padding="16dp">
<code.name.monkey.retromusic.views.VerticalTextView
2019-02-26 18:08:07 +00:00
android:id="@+id/songTitle"
style="@style/TextAppearance.MaterialComponents.Headline2"
2018-11-05 13:53:07 +00:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:ellipsize="end"
android:freezesText="true"
android:singleLine="true"
2019-02-26 18:08:07 +00:00
android:textStyle="bold"
2018-11-05 13:53:07 +00:00
app:textAllCaps="true"
tools:ignore="MissingPrefix"
tools:text="Song title" />
<code.name.monkey.retromusic.views.VerticalTextView
2019-02-26 18:08:07 +00:00
android:id="@+id/songText"
style="@style/TextAppearance.MaterialComponents.Subtitle1"
2018-11-05 13:53:07 +00:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:ellipsize="end"
android:maxLines="2"
tools:text=" Album name \nby Artist name" />
</LinearLayout>
<LinearLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-11-05 13:53:07 +00:00
android:layout_gravity="bottom"
android:orientation="vertical">
<fragment
2019-02-26 18:08:07 +00:00
android:id="@+id/playbackControlsFragment"
android:name="code.name.monkey.retromusic.ui.fragments.player.tiny.TinyPlaybackControlsFragment"
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-26 18:08:07 +00:00
tools:layout="@layout/fragment_tiny_controls_fragment" />
2018-11-05 13:53:07 +00:00
<FrameLayout
android:id="@+id/toolbar_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.Toolbar
2019-02-26 18:08:07 +00:00
android:id="@+id/playerToolbar"
style="@style/Toolbar"
2018-11-05 13:53:07 +00:00
app:navigationIcon="@drawable/ic_close_white_24dp" />
</FrameLayout>
</LinearLayout>
<LinearLayout
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
2018-11-05 13:53:07 +00:00
android:gravity="center_vertical"
android:orientation="horizontal">
<code.name.monkey.retromusic.views.VerticalTextView
2019-02-26 18:08:07 +00:00
android:id="@+id/playerSongTotalTime"
2018-11-05 13:53:07 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:padding="16dp"
android:textAppearance="@style/TextAppearance.AppCompat.Display3"
2019-02-26 18:08:07 +00:00
android:textStyle="bold"
2018-11-05 13:53:07 +00:00
tools:ignore="MissingPrefix" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
</code.name.monkey.retromusic.views.FitSystemWindowsLayout>
2018-07-27 13:07:33 +00:00
</FrameLayout>