android - My ads are only visible in landscape? -
well uploaded app on market, ads showing on tablets, not on phones. tilted phone in landscape instead of portrait , ad popped? cannot understand why here xml file
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="@drawable/blue_final2" > <com.google.ads.adview android:id="@+id/ad" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adunitid="id" ads:loadadoncreate="true" ads:adsize="banner" /> <scrollview android:layout_weight="30" android:layout_width="fill_parent" android:layout_height="fill_parent"> <linearlayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" > <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:weightsum="9" > <imagebutton android:id="@+id/ibone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="3" android:src="@drawable/one" android:background="@null" android:layout_margintop="60dp" /> <imagebutton android:id="@+id/ibtwo" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="3" android:src="@drawable/two" android:background="@null" android:layout_margintop="60dp"/> <imagebutton android:id="@+id/ibthree" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="3" android:src="@drawable/three" android:background="@null" android:layout_margintop="60dp" /> </linearlayout> <textview android:id="@+id/textview1" android:padding="30dp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="click on picture , see result!" android:textappearance="?android:attr/textappearancelarge" android:textcolor="@android:color/white" /> </linearlayout> </scrollview> </linearlayout>
i figured out. quite simple... changed width of ad wrap_content match parent , working properly!
Comments
Post a Comment