Note that there are some explanatory texts on larger screens.

plurals
  1. POScrollView moved AdMob ads
    text
    copied!<p>Well before my ads were working fine and were always at the bottom of the screen, but now I added a scrollview and the ads move up a little bit to be right under my scrollbar.</p> <p>main.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/pattern_carbon_fiber_dark"&gt; &lt;ScrollView android:id="@+id/ScrollView01" android:layout_width="wrap_content" android:layout_height="339px"&gt; &lt;LinearLayout android:id="@+id/LinearLayout02" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"&gt; &lt;TextView android:text="Silent Mode" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/silent_textview"&gt;&lt;/TextView&gt; &lt;ToggleButton android:layout_height="wrap_content" android:text="Silent Mode" android:id="@+id/silentbutton" android:layout_width="wrap_content" android:textOff="OFF" android:textOn="ON"&gt;&lt;/ToggleButton&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Wifi " android:id="@+id/wifi_textview"&gt;&lt;/TextView&gt; &lt;ToggleButton android:layout_width="wrap_content" android:text="ToggleButton" android:layout_height="wrap_content" android:id="@+id/wifibutton"&gt;&lt;/ToggleButton&gt; &lt;TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/gps" android:id="@+id/gps_textview"&gt;&lt;/TextView&gt; &lt;Button android:text="@string/gpsbutton" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/gps"&gt;&lt;/Button&gt; &lt;TextView android:layout_width="wrap_content" android:text="@string/bluetooth" android:layout_height="wrap_content" android:id="@+id/bluetooth_textview"&gt;&lt;/TextView&gt; &lt;ToggleButton android:layout_width="wrap_content" android:text="ToggleButton" android:id="@+id/bluetooth" android:layout_height="wrap_content"&gt;&lt;/ToggleButton&gt; &lt;TextView android:text="@string/brightness" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/screenbrightness_textview"&gt;&lt;/TextView&gt; &lt;SeekBar android:layout_height="wrap_content" android:id="@+id/SbBar" android:layout_width="fill_parent" android:max="255"&gt;&lt;/SeekBar&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_height="wrap_content" android:layout_width="wrap_content"&gt; &lt;com.google.ads.AdView xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:id="@+id/adView" android:layout_width="fill_parent" ads:adSize="BANNER" ads:adUnitId="a14ddb1a61b9fb4" ads:loadAdOnCreate="true" android:visibility="visible" android:layout_alignParentBottom="true" android:layout_gravity="bottom" android:layout_height="wrap_content" android:layout_alignParentTop="false"&gt; &lt;/com.google.ads.AdView&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;/LinearLayout&gt; </code></pre> <p>Please help, thanks!</p> <p>EDIT: Picture</p> <p><a href="http://img52.imageshack.us/img52/9397/unledyv.png" rel="nofollow noreferrer">UI pic http://img52.imageshack.us/img52/9397/unledyv.png</a></p>
 

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