Move behavior to XML

This commit is contained in:
topjohnwu
2021-02-13 15:26:32 -08:00
parent be6386c410
commit f88e812b63
4 changed files with 12 additions and 17 deletions
@@ -35,6 +35,7 @@
style="@style/WidgetFoundation.Appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_behavior=".utils.HideTopViewOnScrollBehavior"
app:fitsSystemWindowsInsets="top">
<com.google.android.material.appbar.MaterialToolbar
@@ -76,6 +77,7 @@
android:layout_marginBottom="@dimen/l1"
android:fitsSystemWindows="false"
app:layout_fitsSystemWindowsInsets="bottom"
app:layout_behavior=".utils.HideBottomViewOnScrollBehavior"
tools:layout_marginBottom="64dp">
<com.google.android.material.bottomnavigation.BottomNavigationView