Note that there are some explanatory texts on larger screens.

plurals
  1. POAdmob transparent in ListActivity
    primarykey
    data
    text
    <p>AdView displays after a few seconds but it is transparent and listView is taking up whole screen. Looked everywhere but cannot get Adview to behave. Can you see what I am doing wrong so the ListView is making space for the Adview?</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.layout.activity_with_adview); } </code></pre> <p>activity_with_adview.xml</p> <pre><code>&lt;RelativeLayout 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" &gt; &lt;com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="50dp" android:layout_alignParentBottom="true" ads:adSize="BANNER" ads:adUnitId="xxxxxxxxxxxxxx" ads:loadAdOnCreate="true" ads:testDevices="TEST_EMULATOR" android:background="@android:color/black" /&gt; &lt;LinearLayout android:id="@+id/home_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@id/adView" android:orientation="vertical" &gt; &lt;ListView android:id="@id/android:list" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/black" &gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p><img src="https://i.stack.imgur.com/5Sm3W.png" alt="example of problem"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload