- <android.support.design.widget.FloatingActionButton
- 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:backgroundTint="@color/colorPrimary"
- app:srcCompat="@android:drawable/ic_menu_send" />
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <ProgressBar
+ android:id="@+id/save_transaction_progress"
+ android:layout_width="80dp"
+ android:layout_height="80dp"
+ android:layout_margin="4dp"
+ android:indeterminate="true"
+ android:indeterminateTint="@color/colorPrimary"
+ android:visibility="invisible"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
+
+ <com.google.android.material.floatingactionbutton.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"
+ android:visibility="gone"
+ app:backgroundTint="?colorAccent"
+ 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" />
+
+ </androidx.constraintlayout.widget.ConstraintLayout>