如何在 android 程序中加入 admob 广告赚钱
2010-03-01 05:14:00 来源:WEB开发网核心提示:name="refreshInterval" format="integer" /> <attr name="isGoneWithoutAd" format="boolean" /> </declare-styl
name="refreshInterval" format="integer" />
<attr name="isGoneWithoutAd" format="boolean" />
</declare-styleable>
</resources>
<attr name="isGoneWithoutAd" format="boolean" />
</declare-styleable>
</resources>
这个,没什么说的。
Placing an AdView in a Layout
AdView widgets can be put into any XML
layout now. The first step is to reference attrs.xml in your layout element by
adding an xmlns line that includes your package name specified in
AndroidManifest.xml:
xmlns:yourapp=http://schemas.android.com/apk/res/yourpackage
For example a simple screen with only an ad on it would look like:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:admobsdk="http://schemas.android.com/apk/res/com.admob.android.example"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
更多精彩
赞助商链接