- <android.support.design.widget.FloatingActionButton
- android:id="@+id/fab"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:padding="@dimen/fab_margin"
- android:tint="@android:color/white"
- app:backgroundTint="@color/colorPrimary"
- app:layout_constraintBottom_toBottomOf="@id/save_transaction_progress"
- app:layout_constraintEnd_toEndOf="@id/save_transaction_progress"
- app:layout_constraintStart_toStartOf="@id/save_transaction_progress"
- app:layout_constraintTop_toTopOf="@id/save_transaction_progress"
- app:srcCompat="@drawable/ic_save_white_24dp" />
-
- </android.support.constraint.ConstraintLayout>
-
-</android.support.design.widget.CoordinatorLayout>
\ No newline at end of file
+ </androidx.constraintlayout.widget.ConstraintLayout>
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/fabAdd"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom|end"
+ android:layout_marginEnd="@dimen/fab_margin"
+ android:layout_marginBottom="@dimen/fab_margin"
+ android:contentDescription="@string/add_button_description"
+ android:padding="@dimen/fab_margin"
+ android:tint="?android:attr/colorBackground"
+ android:visibility="visible"
+ app:backgroundTint="?colorSecondary"
+ app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:srcCompat="@drawable/ic_save_white_24dp"
+ />
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file