Adjusted the statubsar color for the flat now playing screen.
This commit is contained in:
parent
f104a5f105
commit
87acf80aa6
7 changed files with 24 additions and 9 deletions
|
|
@ -436,7 +436,7 @@ public class FlatPlayerFragment extends AbsPlayerFragment implements PlayerAlbum
|
|||
|
||||
public AnimatorSet createDefaultColorChangeAnimatorSet(int newColor) {
|
||||
Animator backgroundAnimator = ViewUtil.createBackgroundColorTransition(fragment.playbackControlsFragment.getView(), fragment.lastColor, newColor);
|
||||
Animator statusBarAnimator = ViewUtil.createBackgroundColorTransition(fragment.playerStatusBar, ColorUtil.darkenColor(fragment.lastColor), ColorUtil.darkenColor(newColor));
|
||||
Animator statusBarAnimator = ViewUtil.createBackgroundColorTransition(fragment.playerStatusBar, fragment.lastColor, newColor);
|
||||
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
animatorSet.playTogether(backgroundAnimator, statusBarAnimator);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
android:shape="rectangle">
|
||||
<gradient
|
||||
android:angle="90"
|
||||
android:endColor="#34000000"
|
||||
android:endColor="@color/twenty_percent_black_overlay"
|
||||
android:centerColor="#11000000"
|
||||
android:startColor="#00000000" />
|
||||
</shape>
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
android:shape="rectangle">
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:endColor="#34000000"
|
||||
android:endColor="@color/twenty_percent_black_overlay"
|
||||
android:centerColor="#11000000"
|
||||
android:startColor="#00000000" />
|
||||
</shape>
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/progress_container_height"
|
||||
android:background="#33000000">
|
||||
android:background="@color/twenty_percent_black_overlay">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/player_song_current_progress"
|
||||
|
|
|
|||
|
|
@ -4,10 +4,21 @@
|
|||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<View
|
||||
android:id="@+id/player_status_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/status_bar_padding" />
|
||||
<FrameLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<View
|
||||
android:id="@+id/player_status_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/status_bar_padding" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/status_bar_padding"
|
||||
android:background="@color/twenty_percent_black_overlay" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<com.sothree.slidinguppanel.SlidingUpPanelLayout android:id="@+id/player_sliding_layout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/progress_container_height"
|
||||
android:background="#33000000">
|
||||
android:background="@color/twenty_percent_black_overlay">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/player_song_current_progress"
|
||||
|
|
|
|||
4
app/src/main/res/values/colors.xml
Normal file
4
app/src/main/res/values/colors.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="twenty_percent_black_overlay">#34000000</color>
|
||||
</resources>
|
||||
Loading…
Add table
Add a link
Reference in a new issue