1

这是我展示 Ads 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,但我想知道添加代码“ xmlns:ads="http://schemas.android.com/apk/res-auto” ????

4

1 回答 1

0

如果您不需要使用ads命名空间,则不需要包含它。看起来你不需要它,有些不需要

于 2014-09-21T00:58:44.370 回答