Improve FilterOptionsDialog layout by moving the 'IgnoreNetworkFees' section above the 'Fiat Amount' section.

This commit is contained in:
Severiano Jaramillo 2019-01-15 21:43:24 -06:00
parent 3014e12a5a
commit 887d9a249f
2 changed files with 16 additions and 14 deletions

View file

@ -127,12 +127,24 @@
tools:listitem="@android:layout/simple_list_item_1" tools:listitem="@android:layout/simple_list_item_1"
app:layout_constraintTop_toBottomOf="@id/cbAsset"/> app:layout_constraintTop_toBottomOf="@id/cbAsset"/>
<!-- Ignore Agorise Fees -->
<Switch
android:id="@+id/switchAgoriseFees"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_same_topic"
android:switchPadding="12dp"
android:text="@string/text__ignore_network_fees"
android:textSize="16sp"
android:textColor="?android:textColorSecondary"
app:layout_constraintTop_toBottomOf="@id/sAsset"/>
<!-- Fiat Amount --> <!-- Fiat Amount -->
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="@string/text__fiat_amount" android:text="@string/text__fiat_amount"
android:textSize="16sp" android:textSize="16sp"
app:layout_constraintTop_toTopOf="@id/cbFiatAmount" app:layout_constraintTop_toTopOf="@id/cbFiatAmount"
@ -142,10 +154,10 @@
android:id="@+id/cbFiatAmount" android:id="@+id/cbFiatAmount"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_same_topic" android:layout_marginTop="@dimen/spacing_different_topic"
android:text="@string/text__all" android:text="@string/text__all"
android:enabled="false" android:enabled="false"
app:layout_constraintTop_toBottomOf="@id/sAsset" app:layout_constraintTop_toBottomOf="@id/switchAgoriseFees"
app:layout_constraintEnd_toEndOf="parent"/> app:layout_constraintEnd_toEndOf="parent"/>
<LinearLayout <LinearLayout
@ -187,14 +199,4 @@
</LinearLayout> </LinearLayout>
<Switch
android:id="@+id/switchAgoriseFees"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_different_topic"
android:switchPadding="12dp"
android:text="@string/msg__ignore_transaction_fees"
android:textSize="16sp"
app:layout_constraintTop_toBottomOf="@id/llFiatAmount"/>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -58,7 +58,7 @@
<string name="text__received">Received</string> <string name="text__received">Received</string>
<string name="text__date_range">Date Range</string> <string name="text__date_range">Date Range</string>
<string name="text__fiat_amount">Fiat Amount</string> <string name="text__fiat_amount">Fiat Amount</string>
<string name="msg__ignore_transaction_fees">Ignore transaction network fees</string> <string name="text__ignore_network_fees">Ignore Network fees</string>
<string name="button__filter">Filter</string> <string name="button__filter">Filter</string>
<!-- Send Transaction --> <!-- Send Transaction -->