Update now playing layout

This commit is contained in:
Andrew Rabert 2019-03-19 00:12:47 -04:00
parent b213a99e7c
commit ca15682a5e
6 changed files with 63 additions and 26 deletions

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<gradient
android:angle="270"
android:startColor="#00000000"
android:centerColor="#00000000"
android:endColor="#bb000000"
android:type="linear"/>
</shape>
</item>
</selector>

View File

@ -3,7 +3,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<net.nullsum.audinaut.view.RecyclingImageView
android:id="@+id/download_album_art_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<LinearLayout
android:background="@drawable/gradient"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
@ -25,12 +32,6 @@
android:layout_height="0dp"
android:layout_weight="1">
<net.nullsum.audinaut.view.RecyclingImageView
android:id="@+id/download_album_art_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<net.nullsum.audinaut.view.RecyclingImageView
android:id="@+id/download_album_art_image"
android:layout_width="match_parent"
@ -39,15 +40,24 @@
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/download_overlay_buttons"
android:layout_width="match_parent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:background="@color/overlayColor"
android:gravity="center"
android:orientation="horizontal"
android:visibility="invisible" />
android:background="#000000"
android:orientation="vertical">
<include layout="@layout/download_playlist" />
</LinearLayout>
</ViewFlipper>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/download_status"
@ -73,14 +83,19 @@
android:maxLines="1"
android:textColor="?android:textColorPrimary"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/download_overlay_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:background="@color/overlayColor"
android:gravity="center"
android:orientation="horizontal"
android:visibility="invisible" />
<include layout="@layout/download_playlist" />
</ViewFlipper>
<include layout="@layout/download_media_buttons" />
<include layout="@layout/download_slider" />
<include layout="@layout/download_media_buttons" />
</LinearLayout>
</LinearLayout>
</FrameLayout>

View File

@ -29,21 +29,21 @@
<ImageButton
android:id="@+id/download_pause"
style="@style/PlaybackControl.Large"
style="@style/PlaybackControl.Larger"
android:layout_centerInParent="true"
android:src="?attr/media_button_pause"
android:visibility="invisible" />
<ImageButton
android:id="@+id/download_stop"
style="@style/PlaybackControl.Large"
style="@style/PlaybackControl.Larger"
android:layout_centerInParent="true"
android:src="?attr/media_button_stop"
android:visibility="invisible" />
<ImageButton
android:id="@+id/download_start"
style="@style/PlaybackControl.Large"
style="@style/PlaybackControl.Larger"
android:layout_centerInParent="true"
android:src="?attr/media_button_start" />

View File

@ -3,7 +3,10 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:paddingBottom="10dip">
android:layout_marginTop="15dp"
android:layout_marginBottom="5dp"
android:paddingLeft="10dip"
android:paddingRight="10dip">
<TextView
android:id="@+id/download_position"

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="Button">54dip</dimen>
<dimen name="Button.Larger">80dip</dimen>
<dimen name="Button.Large">60dip</dimen>
<dimen name="Button.Small">42dip</dimen>
<dimen name="AlbumArt.Small">78dip</dimen>

View File

@ -66,6 +66,11 @@
<item name="android:paddingRight">3dp</item>
</style>
<style name="PlaybackControl.Larger" parent="@style/PlaybackControl">
<item name="android:layout_width">@dimen/Button.Larger</item>
<item name="android:layout_height">@dimen/Button.Larger</item>
</style>
<style name="PlaybackControl.Match" parent="@style/PlaybackControl">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">wrap_content</item>