Add Send/Receive text below the Send/Receive buttons in the Balances screen and improve its layout so they are always centered both vertically and horizontally.

This commit is contained in:
Severiano Jaramillo 2018-12-13 12:47:25 -06:00
parent 5a6b098f38
commit ffebc39bcf

View file

@ -45,9 +45,22 @@
android:backgroundTint="@color/colorReceive" android:backgroundTint="@color/colorReceive"
android:src="@drawable/ic_receive" android:src="@drawable/ic_receive"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/firstVerticalGuideline"/> app:layout_constraintEnd_toStartOf="@id/firstVerticalGuideline"
app:layout_constraintBottom_toTopOf="@+id/tvReceiveTransaction"
app:layout_constraintVertical_chainStyle="packed"/>
<TextView
android:id="@+id/tvReceiveTransaction"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/title_receive"
android:textAppearance="@style/TextAppearance.Bitsy.Body1"
android:textAlignment="center"
app:layout_constraintTop_toBottomOf="@+id/fabReceiveTransaction"
app:layout_constraintStart_toStartOf="@id/fabReceiveTransaction"
app:layout_constraintEnd_toEndOf="@id/fabReceiveTransaction"
app:layout_constraintBottom_toBottomOf="parent"/>
<com.google.android.material.floatingactionbutton.FloatingActionButton <com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabSendTransactionCamera" android:id="@+id/fabSendTransactionCamera"
@ -56,8 +69,8 @@
app:fabSize="mini" app:fabSize="mini"
android:src="@drawable/ic_camera" android:src="@drawable/ic_camera"
android:backgroundTint="@color/colorSend" android:backgroundTint="@color/colorSend"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="@id/fabSendTransaction"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="@id/fabSendTransaction"
app:layout_constraintStart_toEndOf="@id/firstVerticalGuideline" app:layout_constraintStart_toEndOf="@id/firstVerticalGuideline"
app:layout_constraintEnd_toStartOf="@id/secondVerticalGuideline"/> app:layout_constraintEnd_toStartOf="@id/secondVerticalGuideline"/>
@ -71,9 +84,22 @@
android:backgroundTint="@color/colorSend" android:backgroundTint="@color/colorSend"
android:src="@drawable/ic_send" android:src="@drawable/ic_send"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/secondVerticalGuideline" app:layout_constraintStart_toEndOf="@id/secondVerticalGuideline"
app:layout_constraintEnd_toEndOf="parent"/> app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@+id/tvSendTransaction"
app:layout_constraintVertical_chainStyle="packed"/>
<TextView
android:id="@+id/tvSendTransaction"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/title_send"
android:textAppearance="@style/TextAppearance.Bitsy.Body1"
android:textAlignment="center"
app:layout_constraintTop_toBottomOf="@+id/fabSendTransaction"
app:layout_constraintStart_toStartOf="@id/fabSendTransaction"
app:layout_constraintEnd_toEndOf="@id/fabSendTransaction"
app:layout_constraintBottom_toBottomOf="parent"/>
<View <View
android:layout_width="0dp" android:layout_width="0dp"