Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding padding to bottom of scrollview in android?
    primarykey
    data
    text
    <p>I want to add padding to the bottom of this scrollview since the text overlaps with the ads I have at the bottom. I am fairly new to android dev. I looked at several other posts but couldnt seem to figure out my problem. Thanks!</p> <p>Here is my weddingfragment.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:fillViewport="false" android:gravity="center" android:scrollbars="horizontal" android:id="@+id/ScrollView"&gt; &lt;LinearLayout android:layout_width="fill_parent" android:orientation="vertical" android:id="@+id/linearLayout2" android:layout_height="wrap_content" android:layout_gravity="center_vertical|center_horizontal"&gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Formal or Black Tie" android:layout_marginTop="16dp" android:textAppearance="?android:attr/textAppearanceMedium" android:textStyle="bold" /&gt; &lt;TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text=" • This means you should wear a Tuxedo or a dark colored suit." android:textAppearance="?android:attr/textAppearanceSmall" /&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre> <p>Here is my activity_main.xml which is the parent of weddingfragment.xml</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adUnitId="" ads:adSize="BANNER" ads:testDevices="" ads:loadAdOnCreate="true" android:layout_alignParentBottom="true" /&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    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