[fenix] For https://github.com/mozilla-mobile/fenix/issues/24252 - Rename primaryText...
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / fragment_pwa_onboarding.xml
blob0f939e829486621e9625dcd251e7aef7f5d74ba1
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 xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:app="http://schemas.android.com/apk/res-auto"
7     xmlns:tools="http://schemas.android.com/tools"
8     android:id="@+id/createShortcutWrapper"
9     android:layout_width="match_parent"
10     android:layout_height="match_parent"
11     android:background="?scrim"
12     android:fitsSystemWindows="true"
13     tools:context="org.mozilla.fenix.shortcut.PwaOnboardingDialogFragment">
15     <androidx.constraintlayout.widget.ConstraintLayout
16         android:layout_width="match_parent"
17         android:layout_height="wrap_content"
18         android:layout_gravity="center"
19         android:layout_marginStart="32dp"
20         android:layout_marginTop="16dp"
21         android:layout_marginEnd="32dp"
22         android:layout_marginBottom="16dp"
23         android:background="@drawable/dialog_background"
24         android:paddingStart="16dp"
25         android:paddingTop="16dp"
26         android:paddingEnd="16dp"
27         android:paddingBottom="16dp">
29         <TextView
30             android:id="@+id/dialog_title"
31             android:layout_width="wrap_content"
32             android:layout_height="wrap_content"
33             android:text="@string/add_to_homescreen_title"
34             android:textAppearance="@style/HeaderTextStyle"
35             android:textSize="20sp"
36             app:layout_constraintStart_toStartOf="parent"
37             app:layout_constraintTop_toTopOf="parent" />
39         <ImageView
40             android:id="@+id/home_icon"
41             android:layout_width="24dp"
42             android:layout_height="24dp"
43             android:layout_marginStart="0dp"
44             android:layout_marginTop="16dp"
45             android:layout_marginEnd="16dp"
46             android:importantForAccessibility="no"
47             app:layout_constraintEnd_toStartOf="@id/description"
48             app:layout_constraintStart_toStartOf="parent"
49             app:layout_constraintTop_toBottomOf="@id/dialog_title"
50             app:srcCompat="@drawable/mozac_ic_add_to_home_screen" />
52         <TextView
53             android:id="@+id/description"
54             android:layout_width="0dp"
55             android:layout_height="wrap_content"
56             android:text="@string/add_to_homescreen_description_2"
57             android:textColor="?attr/textPrimary"
58             android:textSize="16sp"
59             app:layout_constraintEnd_toEndOf="parent"
60             app:layout_constraintStart_toEndOf="@id/home_icon"
61             app:layout_constraintTop_toTopOf="@id/home_icon" />
63         <com.google.android.material.button.MaterialButton
64             android:id="@+id/add_button"
65             style="@style/PositiveButton"
66             android:layout_width="0dp"
67             android:layout_height="wrap_content"
68             android:layout_marginTop="16dp"
69             android:letterSpacing="0"
70             android:text="@string/add_to_homescreen_title"
71             android:textAllCaps="false"
72             android:textColor="?textActionPrimary"
73             android:textSize="16sp"
74             android:textStyle="bold"
75             app:layout_constraintBottom_toTopOf="@id/cancel_button"
76             app:layout_constraintEnd_toEndOf="parent"
77             app:layout_constraintStart_toStartOf="parent"
78             app:layout_constraintTop_toBottomOf="@id/description" />
80         <com.google.android.material.button.MaterialButton
81             android:id="@+id/cancel_button"
82             style="@style/Widget.MaterialComponents.Button.TextButton"
83             android:layout_width="0dp"
84             android:layout_height="wrap_content"
85             android:fontFamily="@font/metropolis_semibold"
86             android:letterSpacing="0"
87             android:text="@string/add_to_homescreen_continue"
88             android:textAllCaps="false"
89             android:textColor="?attr/textPrimary"
90             android:textSize="16sp"
91             android:textStyle="bold"
92             app:layout_constraintBottom_toBottomOf="parent"
93             app:layout_constraintEnd_toEndOf="parent"
94             app:layout_constraintStart_toStartOf="parent"
95             app:layout_constraintTop_toBottomOf="@id/add_button" />
96     </androidx.constraintlayout.widget.ConstraintLayout>
97 </FrameLayout>