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) {
|
public AnimatorSet createDefaultColorChangeAnimatorSet(int newColor) {
|
||||||
Animator backgroundAnimator = ViewUtil.createBackgroundColorTransition(fragment.playbackControlsFragment.getView(), fragment.lastColor, 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 animatorSet = new AnimatorSet();
|
||||||
animatorSet.playTogether(backgroundAnimator, statusBarAnimator);
|
animatorSet.playTogether(backgroundAnimator, statusBarAnimator);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<gradient
|
<gradient
|
||||||
android:angle="90"
|
android:angle="90"
|
||||||
android:endColor="#34000000"
|
android:endColor="@color/twenty_percent_black_overlay"
|
||||||
android:centerColor="#11000000"
|
android:centerColor="#11000000"
|
||||||
android:startColor="#00000000" />
|
android:startColor="#00000000" />
|
||||||
</shape>
|
</shape>
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<gradient
|
<gradient
|
||||||
android:angle="270"
|
android:angle="270"
|
||||||
android:endColor="#34000000"
|
android:endColor="@color/twenty_percent_black_overlay"
|
||||||
android:centerColor="#11000000"
|
android:centerColor="#11000000"
|
||||||
android:startColor="#00000000" />
|
android:startColor="#00000000" />
|
||||||
</shape>
|
</shape>
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/progress_container_height"
|
android:layout_height="@dimen/progress_container_height"
|
||||||
android:background="#33000000">
|
android:background="@color/twenty_percent_black_overlay">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/player_song_current_progress"
|
android:id="@+id/player_song_current_progress"
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,22 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/player_status_bar"
|
android:id="@+id/player_status_bar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/status_bar_padding" />
|
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"
|
<com.sothree.slidinguppanel.SlidingUpPanelLayout android:id="@+id/player_sliding_layout"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:sothree="http://schemas.android.com/apk/res-auto"
|
xmlns:sothree="http://schemas.android.com/apk/res-auto"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/progress_container_height"
|
android:layout_height="@dimen/progress_container_height"
|
||||||
android:background="#33000000">
|
android:background="@color/twenty_percent_black_overlay">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/player_song_current_progress"
|
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