For #9594: Increase touch target for snackbar action button button.
This commit is contained in:
parent
267cf35edb
commit
906d72c894
|
@ -19,9 +19,7 @@
|
|||
android:minHeight="48dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingBottom="8dp">
|
||||
android:paddingEnd="16dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/snackbar_text"
|
||||
|
@ -30,6 +28,8 @@
|
|||
android:ellipsize="end"
|
||||
android:letterSpacing="0.05"
|
||||
android:maxLines="2"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:textAlignment="textStart"
|
||||
android:textColor="@color/photonWhite"
|
||||
android:textSize="18sp"
|
||||
|
@ -41,16 +41,17 @@
|
|||
tools:text="This is a custom Snackbar text" />
|
||||
|
||||
<Button
|
||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||
android:id="@+id/snackbar_btn"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||
android:letterSpacing="0.05"
|
||||
android:minWidth="0dp"
|
||||
android:minHeight="0dp"
|
||||
android:padding="0dp"
|
||||
android:minWidth="48dp"
|
||||
android:minHeight="48dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:textAlignment="textEnd"
|
||||
android:textAllCaps="true"
|
||||
android:textColor="@color/photonWhite"
|
||||
|
@ -61,6 +62,7 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/snackbar_text"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="Action text" />
|
||||
tools:text="Action text"
|
||||
tools:visibility="visible" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</FrameLayout>
|
||||
|
|
Loading…
Reference in New Issue
Block a user