Skip to content

Commit ae739cc

Browse files
committed
Place information icon of external banner to the left of the banner
Avoids missclicking the close icon instead according to designers
1 parent 9f1994d commit ae739cc

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

app/src/main/res/layout/fragment_new_message.xml

+13-10
Original file line numberDiff line numberDiff line change
@@ -476,22 +476,25 @@
476476
app:layout_constraintTop_toBottomOf="@+id/compositionNestedScrollView"
477477
tools:visibility="visible">
478478

479-
<TextView
480-
style="@style/BodySmall"
481-
android:layout_width="0dp"
482-
android:layout_height="wrap_content"
483-
android:layout_marginHorizontal="@dimen/marginStandardMedium"
484-
android:layout_weight="1"
485-
android:text="@string/externalDialogTitleRecipient"
486-
android:textColor="@color/externalTagOnBackground" />
487-
488479
<com.google.android.material.button.MaterialButton
489480
android:id="@+id/informationButton"
490-
style="@style/IconButtonSmall"
481+
style="@style/TextButton"
482+
android:layout_width="wrap_content"
483+
android:layout_height="match_parent"
491484
android:layout_marginEnd="@dimen/marginStandardMedium"
485+
android:minHeight="0dp"
486+
android:paddingVertical="0dp"
487+
android:text="@string/externalDialogTitleRecipient"
488+
android:textColor="@color/primaryTextColor"
492489
app:icon="@drawable/ic_external_information"
490+
app:iconGravity="end"
493491
app:iconTint="@color/externalTagOnBackground" />
494492

493+
<Space
494+
android:layout_width="0dp"
495+
android:layout_height="0dp"
496+
android:layout_weight="1" />
497+
495498
<com.google.android.material.button.MaterialButton
496499
android:id="@+id/closeButton"
497500
style="@style/IconButtonSmall"

0 commit comments

Comments
 (0)