在TabbedView上方添加AdMob广告?
当我尝试将AdMob广告引用放在选项卡式视图上方时,我收到“解析XML文件时出错:未绑定前缀”。任何想法如何解决?
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:padding="5dp">
<com.admob.android.ads.AdView android:id="@+id/ad"
android:layout_width="fill_parent" android:layout_height="wrap_content"
myapp:backgroundColor="#000000" myapp:primaryTextColor="#FFFFFF"
myapp:secondaryTextColor="#CCCCCC" />
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent" android:layout_height="wrap_content" />
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:padding="5dp" />
</LinearLayout>
</TabHost>
没有找到相关结果
已邀请:
2 个回复
讼乐
但我没有看到'myapp'前缀的任何声明。这可能是错误的根源。 就像在xml中声明“android”命名空间一样:
'myapp'命名空间也应该在某个地方声明
殿虫
,以及
中定义的属性。
似乎是:
例如
,请查看上面的答案。