]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/activity_templates.xml
separate FAB management in a helper class
[mobile-ledger.git] / app / src / main / res / layout / activity_templates.xml
index e53fb95e062a0d3f096b6a1aa235edc1d9966ed1..30c998dfb3d18f4e21ad816512671bfb6b4ee3e0 100644 (file)
     </androidx.core.widget.NestedScrollView>
 
     <com.google.android.material.floatingactionbutton.FloatingActionButton
-        android:id="@+id/fabAdd"
+        android:id="@+id/fab"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_gravity="bottom|end"
         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
-        android:id="@+id/fabSave"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_gravity="bottom|end"
-        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"
+        app:srcCompat="@drawable/ic_add_white_24dp"
         />
 
 </androidx.coordinatorlayout.widget.CoordinatorLayout>