i am implementing admob on my app it appears when the parent is in relative layout but i must not use the alignparentbottom so i am changing it to linear but it doesnt show when i change it to linear..
any tips? help? thanks in advance
here it is in xml:
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
android:id="@+id/banner_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
android:id="@+id/offline_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@color/black"
android:src="@drawable/offline_banner" />
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/unit_id"
ads:loadAdOnCreate="true" />
android:id="@+id/fragmentContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
i want the admob to be at the bottom part of the screen without using the alignparentbottom of relative layout
thanks~
No comments:
Post a Comment