Fix FloatingActionButtons used in SendTransactionFragment and BoardActivity, after the migration to the new MaterialComponents they got messed up because the way they are designed in XML and its properties changed a bit.

This commit is contained in:
Severiano Jaramillo 2018-11-30 11:52:53 -06:00
parent 52f75eb3cf
commit 618e71a6ac
2 changed files with 15 additions and 9 deletions

View file

@ -124,21 +124,25 @@
<android.support.design.widget.FloatingActionButton
android:id="@+id/fabReceive"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start|bottom"
android:layout_marginBottom="-125dp"
android:layout_marginStart="-125dp"
app:fabCustomSize="250dp"
app:maxImageSize="200dp"
app:backgroundTint="@color/white"
app:srcCompat="@drawable/receive_icon" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fabSend"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:layout_marginBottom="-125dp"
android:layout_marginEnd="-125dp"
app:fabCustomSize="250dp"
app:maxImageSize="200dp"
app:backgroundTint="@color/white"
app:srcCompat="@drawable/send_icon" />

View file

@ -221,10 +221,10 @@
<android.support.design.widget.FloatingActionButton
android:id="@+id/fabCloseCamera"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:backgroundTint="@color/send_strong_orange"
app:fabSize="mini"
app:fabCustomSize="32dp"
app:layout_constraintStart_toEndOf="@id/centeredVerticalGuideline"
app:layout_constraintTop_toBottomOf="@+id/tvScan"
app:srcCompat="@drawable/ok" />
@ -251,9 +251,11 @@
<android.support.design.widget.FloatingActionButton
android:id="@+id/btnSend"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
app:fabCustomSize="90dp"
app:maxImageSize="70dp"
app:backgroundTint="@color/send_strong_orange"
app:srcCompat="@drawable/ic_arrow_forward"
app:layout_constraintEnd_toEndOf="parent"