[fenix] For https://github.com/mozilla-mobile/fenix/issues/22692: Remove Metropolis...
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / fenix_snackbar.xml
blobd1db7b08ac55aeeba4b98279cd8d5bf4e11c2505
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3    - License, v. 2.0. If a copy of the MPL was not distributed with this
4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <FrameLayout
6     xmlns:android="http://schemas.android.com/apk/res/android"
7     xmlns:app="http://schemas.android.com/apk/res-auto"
8     xmlns:tools="http://schemas.android.com/tools"
9     android:layout_width="match_parent"
10     android:layout_height="match_parent">
12     <androidx.constraintlayout.widget.ConstraintLayout
13         android:id="@+id/snackbar_layout"
14         android:layout_width="match_parent"
15         android:layout_height="wrap_content"
16         android:layout_margin="8dp"
17         android:background="@drawable/fenix_snackbar_background"
18         android:elevation="4dp"
19         android:minHeight="48dp"
20         android:orientation="horizontal"
21         android:paddingStart="16dp"
22         android:paddingEnd="16dp">
24         <TextView
25             android:id="@+id/snackbar_text"
26             android:layout_width="0dp"
27             android:layout_height="wrap_content"
28             android:ellipsize="end"
29             android:letterSpacing="0.05"
30             android:maxLines="2"
31             android:paddingTop="8dp"
32             android:paddingBottom="8dp"
33             android:textAlignment="textStart"
34             android:textColor="@color/photonWhite"
35             android:textSize="18sp"
36             app:layout_constraintBottom_toBottomOf="parent"
37             app:layout_constraintEnd_toStartOf="@id/snackbar_btn"
38             app:layout_constraintStart_toStartOf="parent"
39             app:layout_constraintTop_toTopOf="parent"
40             tools:text="This is a custom Snackbar text" />
42         <Button
43             android:id="@+id/snackbar_btn"
44             style="@style/Widget.AppCompat.Button.Borderless"
45             android:layout_width="wrap_content"
46             android:layout_height="wrap_content"
47             android:layout_marginStart="16dp"
48             android:background="?android:attr/selectableItemBackgroundBorderless"
49             android:letterSpacing="0.05"
50             android:minWidth="48dp"
51             android:minHeight="48dp"
52             android:paddingTop="8dp"
53             android:paddingBottom="8dp"
54             android:textAlignment="textEnd"
55             android:textAllCaps="true"
56             android:textColor="@color/photonWhite"
57             android:textSize="14sp"
58             android:visibility="gone"
59             app:layout_constraintBottom_toBottomOf="parent"
60             app:layout_constraintEnd_toEndOf="parent"
61             app:layout_constraintStart_toEndOf="@id/snackbar_text"
62             app:layout_constraintTop_toTopOf="parent"
63             tools:text="Action text"
64             tools:visibility="visible" />
65     </androidx.constraintlayout.widget.ConstraintLayout>
66 </FrameLayout>