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

132 lines
5.6 KiB
XML
Raw Normal View History

2018-07-27 18:37:33 +05:30
<?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 23:38:07 +05:30
<fragment
android:id="@+id/playerAlbumCoverFragment"
2019-04-20 10:59:45 +05:30
android:name="code.name.monkey.retromusic.fragments.player.PlayerAlbumCoverFragment"
2019-02-26 23:38:07 +05:30
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout="@layout/fragment_player_album_cover" />
<View
2019-08-05 21:43:44 +05:30
android:id="@+id/masked"
2018-07-27 18:37:33 +05:30
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-08-05 21:43:44 +05:30
android:background="?colorPrimary" />
2018-07-27 18:37:33 +05:30
<ProgressBar
2019-02-26 23:38:07 +05:30
android:id="@+id/progressBar"
2018-07-27 18:37:33 +05:30
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:max="100"
android:progress="80"
2019-08-05 23:14:05 +05:30
android:secondaryProgress="100"
2018-07-27 18:37:33 +05:30
android:progressDrawable="@drawable/progress_drawable_vertical" />
2018-11-05 19:23:07 +05:30
<code.name.monkey.retromusic.views.FitSystemWindowsLayout
android:id="@+id/safeArea"
2018-07-27 18:37:33 +05:30
android:layout_width="match_parent"
2018-11-05 19:23:07 +05:30
android:layout_height="match_parent">
2018-07-27 18:37:33 +05:30
2018-11-05 19:23:07 +05:30
<LinearLayout
2018-07-27 18:37:33 +05:30
android:layout_width="match_parent"
2018-11-05 19:23:07 +05:30
android:layout_height="match_parent"
android:orientation="vertical">
2018-07-27 18:37:33 +05:30
2018-11-05 19:23:07 +05:30
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
2018-07-27 18:37:33 +05:30
2018-11-05 19:23:07 +05:30
<include layout="@layout/status_bar" />
</FrameLayout>
2018-07-27 18:37:33 +05:30
2018-11-05 19:23:07 +05:30
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
2018-07-27 18:37:33 +05:30
2018-11-05 19:23:07 +05:30
<LinearLayout
2018-07-27 18:37:33 +05:30
android:layout_width="wrap_content"
android:layout_height="match_parent"
2018-11-05 19:23:07 +05:30
android:orientation="horizontal"
android:padding="16dp">
<code.name.monkey.retromusic.views.VerticalTextView
2019-02-26 23:38:07 +05:30
android:id="@+id/songTitle"
style="@style/TextAppearance.MaterialComponents.Headline2"
2018-11-05 19:23:07 +05:30
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:ellipsize="end"
android:freezesText="true"
android:singleLine="true"
2019-02-26 23:38:07 +05:30
android:textStyle="bold"
2018-11-05 19:23:07 +05:30
app:textAllCaps="true"
tools:ignore="MissingPrefix"
tools:text="Song title" />
<code.name.monkey.retromusic.views.VerticalTextView
2019-02-26 23:38:07 +05:30
android:id="@+id/songText"
style="@style/TextAppearance.MaterialComponents.Subtitle1"
2018-11-05 19:23:07 +05:30
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 18:37:33 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-11-05 19:23:07 +05:30
android:layout_gravity="bottom"
android:orientation="vertical">
<fragment
2019-02-26 23:38:07 +05:30
android:id="@+id/playbackControlsFragment"
2019-04-20 10:59:45 +05:30
android:name="code.name.monkey.retromusic.fragments.player.tiny.TinyPlaybackControlsFragment"
2018-11-05 19:23:07 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-26 23:38:07 +05:30
tools:layout="@layout/fragment_tiny_controls_fragment" />
2018-11-05 19:23:07 +05:30
<FrameLayout
android:id="@+id/toolbar_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.Toolbar
2019-02-26 23:38:07 +05:30
android:id="@+id/playerToolbar"
style="@style/Toolbar"
2019-06-23 22:37:33 +05:30
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black_24dp"
app:navigationIcon="@drawable/ic_keyboard_arrow_down_black_24dp" />
2018-11-05 19:23:07 +05:30
</FrameLayout>
</LinearLayout>
<LinearLayout
2018-07-27 18:37:33 +05:30
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
2018-11-05 19:23:07 +05:30
android:gravity="center_vertical"
android:orientation="horizontal">
<code.name.monkey.retromusic.views.VerticalTextView
2019-02-26 23:38:07 +05:30
android:id="@+id/playerSongTotalTime"
2018-11-05 19:23:07 +05:30
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 23:38:07 +05:30
android:textStyle="bold"
2018-11-05 19:23:07 +05:30
tools:ignore="MissingPrefix" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
</code.name.monkey.retromusic.views.FitSystemWindowsLayout>
2018-07-27 18:37:33 +05:30
</FrameLayout>