WEB开发网
开发学院手机开发Android 开发 如何在 android 程序中加入 admob 广告赚钱 阅读

如何在 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>

这个,没什么说的。


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">
  
        

上一页  1 2 3 4 5 6 7  下一页

Tags:如何 android 程序

编辑录入:coldstar [复制链接] [打 印]
赞助商链接