adapt upstream changes
This commit is contained in:
parent
0fd2894a8b
commit
e1b1ae717f
|
@ -94,9 +94,9 @@ public class ElevationOnScrollListener extends RecyclerView.OnScrollListener imp
|
||||||
if(fragmentRootLayout!=null){
|
if(fragmentRootLayout!=null){
|
||||||
int color;
|
int color;
|
||||||
if(isAtTop){
|
if(isAtTop){
|
||||||
color=UiUtils.getThemeColor(context, R.attr.colorM3Background);
|
color=UiUtils.getThemeColor(context, R.attr.toolbarBackground);
|
||||||
}else{
|
}else{
|
||||||
color=UiUtils.alphaBlendColors(UiUtils.getThemeColor(context, R.attr.colorM3Background), UiUtils.getThemeColor(context, R.attr.colorM3Primary), 0.07843137f);
|
color=UiUtils.alphaBlendColors(UiUtils.getThemeColor(context, R.attr.toolbarBackground), UiUtils.getThemeColor(context, R.attr.colorWindowBackground), 0.07843137f);
|
||||||
}
|
}
|
||||||
anims.add(ObjectAnimator.ofArgb(fragmentRootLayout, "statusBarColor", color));
|
anims.add(ObjectAnimator.ofArgb(fragmentRootLayout, "statusBarColor", color));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item>
|
<item>
|
||||||
<color android:color="?colorM3Background"/>
|
<color android:color="?colorWindowBackground"/>
|
||||||
</item>
|
</item>
|
||||||
<item android:id="@+id/color_overlay">
|
<item android:id="@+id/color_overlay">
|
||||||
<color android:color="?colorM3Primary"/>
|
<color android:color="?toolbarBackground"/>
|
||||||
</item>
|
</item>
|
||||||
</layer-list>
|
</layer-list>
|
|
@ -15,6 +15,7 @@
|
||||||
android:id="@+id/button_bar"
|
android:id="@+id/button_bar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:visibility="gone"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
|
Loading…
Reference in New Issue