这是我展示广告Mobfox的代码。
<?xml version="1.0" encoding="UTF-8"?>
<ScrollView android:background="#d3d8c2"
android:padding="10dp"
android:fillViewport="true"
android:layout_height="match_parent"
android:layout_width="match_parent"
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:background="#ffffff"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical">
<!-- ads MobFox -->
<com.adsdk.sdk.banner.AdView android:layout_height="50dp"
android:layout_width="300dp"
adspaceWidth="320"
adspaceHeight="50"
adspaceStrict="true"
publisherId="MY_PUBLISHER_ID"
animation="true"
location="true"
request_url="http://my.mobfox.com/request.php"
android:id="@+id/mobFoxView"/>
<!-- End ads Mobfox-->
</LinearLayout>
</ScrollView>
我在控制面板MobFox中配置了中介Admob,但我想知道添加代码所需的内容&#34; xmlns:ads="http://schemas.android.com/apk/res-auto
&#34; ????
答案 0 :(得分:0)
如果您不需要使用ads
命名空间,那么您就不需要包含它。有些人不需要它,有些人不会