Started to fix the sliding panel playing queue. WIP
This commit is contained in:
parent
83fb5982ea
commit
188ead81dc
8 changed files with 50 additions and 16 deletions
7
app/src/main/res/drawable-hdpi/above_shadow.xml
Normal file
7
app/src/main/res/drawable-hdpi/above_shadow.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient
|
||||
android:startColor="#20000000"
|
||||
android:endColor="@android:color/transparent"
|
||||
android:angle="90"></gradient>
|
||||
</shape>
|
||||
7
app/src/main/res/drawable-hdpi/below_shadow.xml
Normal file
7
app/src/main/res/drawable-hdpi/below_shadow.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient
|
||||
android:startColor="#20000000"
|
||||
android:endColor="@android:color/transparent"
|
||||
android:angle="270"></gradient>
|
||||
</shape>
|
||||
|
|
@ -1,13 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.sothree.slidinguppanel.SlidingUpPanelLayout
|
||||
<com.kabouzeid.gramophone.views.SlidingUpPanelLayout
|
||||
android:id="@+id/player_sliding_layout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/tools"
|
||||
xmlns:sothree="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:focusable="true"
|
||||
android:clickable="false"
|
||||
android:gravity="bottom"
|
||||
sothree:umanoDragView="@+id/player_panel"
|
||||
sothree:umanoFadeColor="#00000000"
|
||||
|
|
@ -15,7 +12,8 @@
|
|||
sothree:umanoPanelHeight="0dp"
|
||||
sothree:umanoScrollableView="@+id/player_recycler_view"
|
||||
sothree:umanoParallaxOffset="32dp"
|
||||
sothree:umanoShadowHeight="0dp">
|
||||
sothree:umanoShadowHeight="0dp"
|
||||
xmlns:sothree="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/player_content"
|
||||
|
|
@ -77,4 +75,4 @@
|
|||
|
||||
</FrameLayout>
|
||||
|
||||
</com.sothree.slidinguppanel.SlidingUpPanelLayout>
|
||||
</com.kabouzeid.gramophone.views.SlidingUpPanelLayout>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
<com.sothree.slidinguppanel.SlidingUpPanelLayout
|
||||
<com.kabouzeid.gramophone.views.SlidingUpPanelLayout
|
||||
android:id="@+id/sliding_layout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:sothree="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="bottom"
|
||||
sothree:umanoScrollableView="@+id/sliding_panel"
|
||||
sothree:umanoDragView="@+id/sliding_panel"
|
||||
sothree:umanoPanelHeight="@dimen/mini_player_height"
|
||||
sothree:umanoShadowHeight="@dimen/card_elevation">
|
||||
|
||||
|
|
@ -35,4 +33,4 @@
|
|||
|
||||
</FrameLayout>
|
||||
|
||||
</com.sothree.slidinguppanel.SlidingUpPanelLayout>
|
||||
</com.kabouzeid.gramophone.views.SlidingUpPanelLayout>
|
||||
|
|
@ -13,4 +13,24 @@
|
|||
<attr name="icon_color" format="color" />
|
||||
<attr name="divider_color" format="color" />
|
||||
|
||||
<declare-styleable name="SlidingUpPanelLayout">
|
||||
<attr name="umanoPanelHeight" format="dimension" />
|
||||
<attr name="umanoShadowHeight" format="dimension" />
|
||||
<attr name="umanoParallaxOffset" format="dimension" />
|
||||
<attr name="umanoFadeColor" format="color" />
|
||||
<attr name="umanoFlingVelocity" format="integer" />
|
||||
<attr name="umanoDragView" format="reference" />
|
||||
<attr name="umanoScrollableView" format="reference" />
|
||||
<attr name="umanoOverlay" format="boolean" />
|
||||
<attr name="umanoClipPanel" format="boolean" />
|
||||
<attr name="umanoAnchorPoint" format="float" />
|
||||
<attr name="umanoInitialState" format="enum">
|
||||
<enum name="expanded" value="0" />
|
||||
<enum name="collapsed" value="1" />
|
||||
<enum name="anchored" value="2" />
|
||||
<enum name="hidden" value="3" />
|
||||
</attr>
|
||||
<attr name="umanoScrollInterpolator" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
||||
Loading…
Add table
Add a link
Reference in a new issue