-
Notifications
You must be signed in to change notification settings - Fork 5
/
gnt_custom_small_template_view.xml
123 lines (105 loc) · 5.25 KB
/
gnt_custom_small_template_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<com.google.android.gms.ads.nativead.NativeAdView
android:id="@+id/native_ad_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true">
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="12dp"
app:strokeWidth="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginVertical="16dp"
android:orientation="vertical">
<ImageView
android:id="@+id/icon"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_marginHorizontal="4dp"
tools:srcCompat="@tools:sample/avatars" />
<TextView
android:id="@+id/headline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="10dp"
android:textColor="@color/black"
android:textSize="16sp"
android:textStyle="bold"
tools:text="Product Title" />
<TextView
android:id="@+id/primary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="8dp"
android:textColor="@color/black"
android:textSize="16sp"
android:textStyle="bold"
tools:text="Product Price" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="8dp"
android:orientation="horizontal">
<TextView
android:id="@+id/ad_notification_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/gnt_rounded_corners_shape"
android:gravity="center"
android:text="Ad"
android:padding="4dp"
android:textColor="@color/gnt_ad_green"
android:textSize="14sp"
android:textStyle="bold" />
<RatingBar
android:id="@+id/rating_bar"
style="?android:attr/ratingBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:background="@android:color/transparent"
android:lines="1"
android:layout_gravity="center"
android:numStars="5"
android:stepSize="0.1"
android:textColor="@color/gnt_gray"
android:textSize="@dimen/gnt_text_size_small">
</RatingBar>
<TextView
android:id="@+id/secondary"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="4dp"
android:layout_marginTop="@dimen/gnt_no_margin"
android:layout_marginEnd="@dimen/gnt_no_margin"
android:layout_marginBottom="@dimen/gnt_no_margin"
android:background="@color/gnt_white"
android:gravity="center"
android:lines="1"
android:textColor="@color/gnt_gray"
android:textSize="@dimen/gnt_text_size_small" />
</LinearLayout>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/cta"
android:layout_width="match_parent"
android:layout_height="30dp"
android:background="@color/gnt_blue"
android:gravity="center"
android:lines="1"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="8dp"
android:textColor="@color/gnt_white" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</com.google.android.gms.ads.nativead.NativeAdView>
</merge>