Adding padding to bottom of scrollview in android?

meta

New Member
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!Here is my weddingfragment.xml\[code\]<?xml version="1.0" encoding="utf-8"?><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"><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"><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" /> <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" /> </LinearLayout></ScrollView>\[/code\]Here is my activity_main.xml which is the parent of weddingfragment.xml\[code\]<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" ><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" /></RelativeLayout>\[/code\]
 
Back
Top