Sunday, November 17, 2013

Admob in xml not showing in Linear [android help]


Admob in xml not showing in Linear


android - Admob in xml not showing in Linear - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
















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~



















lang-xml






Read more

stackoverflow.comm



No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...