]> git.ktnx.net Git - mobile-ledger.git/commitdiff
Templates: make FAB hide on scroll up
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 2 Feb 2021 21:01:58 +0000 (23:01 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 2 Feb 2021 21:01:58 +0000 (23:01 +0200)
app/src/main/res/layout/activity_templates.xml

index 97416f9f5c15b0682ddc6fdd94531b6db131ac12..e53fb95e062a0d3f096b6a1aa235edc1d9966ed1 100644 (file)
@@ -73,6 +73,7 @@
         android:layout_margin="@dimen/fab_margin"
         app:srcCompat="@drawable/ic_add_white_24dp"
         android:contentDescription="@string/add_button_description"
+        app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior"
         />
 
     <com.google.android.material.floatingactionbutton.FloatingActionButton
@@ -83,6 +84,7 @@
         android:layout_margin="@dimen/fab_margin"
         app:srcCompat="@drawable/ic_save_white_24dp"
         android:contentDescription="@string/save_button_description"
+        app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior"
         />
 
 </androidx.coordinatorlayout.widget.CoordinatorLayout>