14
14
~ limitations under the License.
15
15
-->
16
16
17
- <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
17
+ <com .google.android.material.card.MaterialCardView
18
+ xmlns : android =" http://schemas.android.com/apk/res/android"
18
19
xmlns : app =" http://schemas.android.com/apk/res-auto"
19
20
xmlns : tools =" http://schemas.android.com/tools"
20
- style =" @style/Widget.DuckDuckGo.MessageCta" >
21
+ android : id =" @+id/promoMessage"
22
+ style =" @style/Widget.DuckDuckGo.MessageCta"
23
+ android : clipChildren =" false"
24
+ tools : visibility =" visible"
25
+ android : visibility =" gone" >
21
26
22
- <ImageView
23
- android : id =" @+id/close"
24
- android : layout_width =" @dimen/messageCtaCloseButtonSize"
25
- android : layout_height =" @dimen/messageCtaCloseButtonSize"
26
- android : background =" ?selectableItemBackground"
27
- android : padding =" @dimen/keyline_2"
28
- android : src =" @drawable/ic_close_24"
29
- app : layout_constraintEnd_toEndOf =" parent"
30
- app : layout_constraintTop_toTopOf =" parent" />
31
-
32
- <com .duckduckgo.common.ui.view.text.DaxTextView
33
- android : id =" @+id/messageTitle"
34
- android : layout_width =" 0dp"
27
+ <androidx .constraintlayout.widget.ConstraintLayout
28
+ android : layout_width =" match_parent"
35
29
android : layout_height =" wrap_content"
36
- android : layout_marginStart =" @dimen/keyline_2"
37
- android : layout_marginTop =" @dimen/keyline_1"
38
- android : layout_marginEnd =" @dimen/keyline_2"
39
- android : gravity =" center"
40
- app : layout_constraintEnd_toEndOf =" parent"
41
- app : layout_constraintStart_toStartOf =" parent"
42
- app : layout_constraintTop_toBottomOf =" @id/close"
43
- app : layout_goneMarginTop =" @dimen/keyline_4"
44
- app : typography =" h2"
45
- tools : text =" Placeholder Title" />
30
+ android : paddingBottom =" @dimen/keyline_4" >
46
31
47
- <ImageView
48
- android : id =" @+id/illustration"
49
- android : layout_width =" wrap_content"
50
- android : layout_height =" wrap_content"
51
- android : layout_marginTop =" @dimen/keyline_3"
52
- android : layout_marginBottom =" @dimen/keyline_2"
53
- app : layout_constraintBottom_toTopOf =" @id/messageSubtitle"
54
- app : layout_constraintEnd_toEndOf =" parent"
55
- app : layout_constraintStart_toStartOf =" parent"
56
- app : layout_constraintTop_toBottomOf =" @id/messageTitle"
57
- tools : src =" @drawable/desktop_promo_artwork" />
32
+ <ImageView
33
+ android : id =" @+id/close"
34
+ android : layout_width =" @dimen/messageCtaCloseButtonSize"
35
+ android : layout_height =" @dimen/messageCtaCloseButtonSize"
36
+ android : background =" ?selectableItemBackground"
37
+ android : padding =" @dimen/keyline_2"
38
+ android : src =" @drawable/ic_close_24"
39
+ app : layout_constraintEnd_toEndOf =" parent"
40
+ app : layout_constraintTop_toTopOf =" parent" />
58
41
59
- <com .duckduckgo.common.ui.view.text.DaxTextView
60
- android : id =" @+id/messageSubtitle"
61
- android : layout_width =" 0dp"
62
- android : layout_height =" wrap_content"
63
- android : layout_marginStart =" @dimen/keyline_4"
64
- android : layout_marginEnd =" @dimen/keyline_4"
65
- android : gravity =" center"
66
- app : layout_constraintBottom_toTopOf =" @id/actionButton"
67
- app : layout_constraintEnd_toEndOf =" parent"
68
- app : layout_constraintStart_toStartOf =" parent"
69
- app : layout_constraintTop_toBottomOf =" @+id/illustration"
70
- app : typography =" body1"
71
- tools : text =" Body text goes here. This component can be used with one or two buttons." />
42
+ <com .duckduckgo.common.ui.view.text.DaxTextView
43
+ android : id =" @+id/messageTitle"
44
+ android : layout_width =" 0dp"
45
+ android : layout_height =" wrap_content"
46
+ android : layout_marginStart =" @dimen/keyline_2"
47
+ android : layout_marginTop =" @dimen/keyline_1"
48
+ android : layout_marginEnd =" @dimen/keyline_2"
49
+ android : gravity =" center"
50
+ app : layout_constraintEnd_toEndOf =" parent"
51
+ app : layout_constraintStart_toStartOf =" parent"
52
+ app : layout_constraintTop_toBottomOf =" @id/close"
53
+ app : layout_goneMarginTop =" @dimen/keyline_4"
54
+ app : typography =" h2"
55
+ tools : text =" Placeholder Title" />
72
56
73
- <com .duckduckgo.common.ui.view.button.DaxButtonSecondary
74
- android : id =" @+id/actionButton"
75
- android : layout_width =" wrap_content"
76
- android : layout_height =" wrap_content"
77
- android : layout_marginTop =" @dimen/keyline_2"
78
- app : layout_constraintBottom_toBottomOf =" parent"
79
- app : layout_constraintEnd_toEndOf =" parent"
80
- app : layout_constraintStart_toStartOf =" parent"
81
- app : layout_constraintTop_toBottomOf =" @id/messageSubtitle"
82
- app : layout_goneMarginStart =" 0dp"
83
- tools : text =" action button" />
57
+ <ImageView
58
+ android : id =" @+id/illustration"
59
+ android : layout_width =" wrap_content"
60
+ android : layout_height =" wrap_content"
61
+ android : layout_marginTop =" @dimen/keyline_3"
62
+ android : layout_marginBottom =" @dimen/keyline_2"
63
+ app : layout_constraintBottom_toTopOf =" @id/messageSubtitle"
64
+ app : layout_constraintEnd_toEndOf =" parent"
65
+ app : layout_constraintStart_toStartOf =" parent"
66
+ app : layout_constraintTop_toBottomOf =" @id/messageTitle"
67
+ tools : src =" @drawable/desktop_promo_artwork" />
68
+
69
+ <com .duckduckgo.common.ui.view.text.DaxTextView
70
+ android : id =" @+id/messageSubtitle"
71
+ android : layout_width =" 0dp"
72
+ android : layout_height =" wrap_content"
73
+ android : layout_marginStart =" @dimen/keyline_4"
74
+ android : layout_marginEnd =" @dimen/keyline_4"
75
+ android : gravity =" center"
76
+ app : layout_constraintBottom_toTopOf =" @id/actionButton"
77
+ app : layout_constraintEnd_toEndOf =" parent"
78
+ app : layout_constraintStart_toStartOf =" parent"
79
+ app : layout_constraintTop_toBottomOf =" @+id/illustration"
80
+ app : typography =" body1"
81
+ tools : text =" Body text goes here. This component can be used with one or two buttons." />
82
+
83
+ <com .duckduckgo.common.ui.view.button.DaxButtonSecondary
84
+ android : id =" @+id/actionButton"
85
+ android : layout_width =" wrap_content"
86
+ android : layout_height =" wrap_content"
87
+ android : layout_marginTop =" @dimen/keyline_2"
88
+ app : layout_constraintBottom_toBottomOf =" parent"
89
+ app : layout_constraintEnd_toEndOf =" parent"
90
+ app : layout_constraintStart_toStartOf =" parent"
91
+ app : layout_constraintTop_toBottomOf =" @id/messageSubtitle"
92
+ app : layout_goneMarginStart =" 0dp"
93
+ tools : text =" action button" />
94
+
95
+ </androidx .constraintlayout.widget.ConstraintLayout>
84
96
85
- </androidx .constraintlayout.widget.ConstraintLayout >
97
+ </com .google.android.material.card.MaterialCardView >
0 commit comments