添加横幅广告

This commit is contained in:
ZhanGSKen
2025-11-14 11:45:35 +08:00
parent f943db17e0
commit 5a77a5e9e0
14 changed files with 616 additions and 67 deletions

View File

@@ -31,5 +31,46 @@
</RelativeLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0">
<Button
android:id="@+id/fetchAd"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="10dp"
android:background="@android:color/white"
android:text="获取广告"/>
<Button
android:id="@+id/showAd"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="10dp"
android:background="@android:color/white"
android:enabled="false"
android:text="展示广告"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/fetchAd"
android:layout_marginTop="10dp"
android:overScrollMode="never"
android:scrollbars="none">
<LinearLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"/>
</ScrollView>
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
<debug-overrides>
<trust-anchors>
<!-- Trust user added CAs while debuggable only -->
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</debug-overrides>
</network-security-config>