Android AdMobs help -
possible duplicate:
android admobs problem.
i trying put in ad once ad loads up, else in program goes away leaving nothing ad. know asking again messed first time though please help.
<?xml version="1.0" encoding="utf-8"?> <linearlayout android:id="@+id/linearlayout" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"> <com.google.ads.adview android:id="@+id/adview" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adunitid="a14ddfjakd;fs;jds;jf4bd" ads:adsize="banner" ads:loadadoncreate="true"/> <scrollview android:id="@+id/scrollview1" android:layout_width="fill_parent" android:layout_height="fill_parent"> <linearlayout android:id="@+id/linearlayout2" android:layout_width="fill_parent" android:layout_height="fill_parent"> <imageview android:src="@drawable/item" android:layout_width="fill_parent" android:layout_gravity="center" android:layout_height="wrap_content" android:id="@+id/imageview1" android:scaletype="center"></imageview> </linearlayout> </scrollview> </linearlayout>
add android:orientation="vertical" initial linearlayout tag.
the default orientation horizontal means banner pushes rest of content off screen side.
Comments
Post a Comment