Skip to content

Commit 541640e

Browse files
committed
fix: native view border
1 parent e273db9 commit 541640e

File tree

7 files changed

+44
-36
lines changed

7 files changed

+44
-36
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<item>
5+
<shape android:shape="rectangle">
6+
<solid android:color="#6D6C6C" />
7+
<corners android:radius="10dp" /> <padding
8+
android:top="4dp" android:bottom="4dp"
9+
android:left="4dp"
10+
android:right="4dp" />
11+
</shape>
12+
</item>
13+
14+
<item android:drawable="@drawable/ads_space">
15+
<padding
16+
android:top="1dp" android:bottom="1dp"
17+
android:left="1dp"
18+
android:right="1dp" />
19+
</item>
20+
21+
<item>
22+
<shape android:shape="rectangle">
23+
<solid android:color="@color/white" />
24+
<corners android:radius="4dp" /> </shape>
25+
</item>
26+
</layer-list>

adsSdk/src/main/res/layout/ad_100.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="match_parent"
44
android:layout_height="wrap_content"
5-
xmlns:app="http://schemas.android.com/apk/res-auto"
6-
app:cardCornerRadius="10dp"
7-
app:cardElevation="3dp"
8-
app:cardUseCompatPadding="true">
5+
android:background="@drawable/border_bg">
96

107
<com.google.android.gms.ads.nativead.NativeAdView
118
android:id="@+id/unified"
@@ -202,4 +199,4 @@
202199
</RelativeLayout>
203200

204201
</com.google.android.gms.ads.nativead.NativeAdView>
205-
</androidx.cardview.widget.CardView>
202+
</RelativeLayout>

adsSdk/src/main/res/layout/ad_150.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:app="http://schemas.android.com/apk/res-auto"
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="match_parent"
54
android:layout_height="wrap_content"
6-
app:cardCornerRadius="10dp"
7-
app:cardElevation="3dp"
8-
app:cardUseCompatPadding="true">
5+
android:background="@drawable/border_bg">
96

107
<com.google.android.gms.ads.nativead.NativeAdView
118
android:id="@+id/ads_100"
@@ -145,4 +142,4 @@
145142
</LinearLayout>
146143
</com.google.android.gms.ads.nativead.NativeAdView>
147144

148-
</androidx.cardview.widget.CardView>
145+
</RelativeLayout>

adsSdk/src/main/res/layout/ad_300.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:app="http://schemas.android.com/apk/res-auto"
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="match_parent"
54
android:layout_height="wrap_content"
6-
app:cardCornerRadius="10dp"
7-
app:cardElevation="3dp"
8-
app:cardUseCompatPadding="true">
5+
android:background="@drawable/border_bg">
96

107
<com.google.android.gms.ads.nativead.NativeAdView
118
android:id="@+id/unified"
@@ -127,4 +124,4 @@
127124
android:textStyle="bold" />
128125
</com.google.android.gms.ads.nativead.NativeAdView>
129126

130-
</androidx.cardview.widget.CardView>
127+
</RelativeLayout>

adsSdk/src/main/res/layout/ad_350.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:app="http://schemas.android.com/apk/res-auto"
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="match_parent"
54
android:layout_height="wrap_content"
6-
app:cardCornerRadius="10dp"
7-
app:cardElevation="3dp"
8-
app:cardUseCompatPadding="true">
5+
android:background="@drawable/border_bg">
96

107
<com.google.android.gms.ads.nativead.NativeAdView
118
android:layout_width="match_parent"
@@ -175,4 +172,4 @@
175172

176173
</com.google.android.gms.ads.nativead.NativeAdView>
177174

178-
</androidx.cardview.widget.CardView>
175+
</RelativeLayout>

adsSdk/src/main/res/layout/ad_40.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:app="http://schemas.android.com/apk/res-auto"
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="match_parent"
54
android:layout_height="wrap_content"
6-
app:cardCornerRadius="10dp"
7-
app:cardElevation="3dp"
8-
app:cardUseCompatPadding="true">
5+
android:background="@drawable/border_bg">
96

107
<com.google.android.gms.ads.nativead.NativeAdView
118
android:id="@+id/unified"
@@ -117,4 +114,4 @@
117114

118115
</LinearLayout>
119116
</com.google.android.gms.ads.nativead.NativeAdView>
120-
</androidx.cardview.widget.CardView>
117+
</RelativeLayout>

adsSdk/src/main/res/layout/ad_50.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:app="http://schemas.android.com/apk/res-auto"
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="match_parent"
54
android:layout_height="wrap_content"
6-
app:cardCornerRadius="10dp"
7-
app:cardElevation="3dp"
8-
app:cardUseCompatPadding="true">
5+
android:background="@drawable/border_bg">
96

107
<com.google.android.gms.ads.nativead.NativeAdView
118
android:layout_height="100dp"
@@ -127,4 +124,4 @@
127124
</LinearLayout>
128125

129126
</com.google.android.gms.ads.nativead.NativeAdView>
130-
</androidx.cardview.widget.CardView>
127+
</RelativeLayout>

0 commit comments

Comments
 (0)