title: How to set the layoutMarginBottom of scrollview programmatically
body: <p>In one of the layouts,i am using scrollview and want to set its layoutMarginBottom programmatically.How can i do that?This is the xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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="fill_parent"
      android:layout_height="fill_parent"
      android:layout_centerHorizontal="true"
      android:orientation="vertical" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/frameLayout"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" &gt;
  
          &lt;ScrollView
              android:id="@+id/scrollView"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_marginBottom="90.0dip"
              android:layout_marginLeft="1.0dip"
              android:layout_marginRight="1.0dip"
              android:layout_marginTop="-2.0dip"
              android:animateLayoutChanges="true"
              android:fadeScrollbars="true"
              android:fadingEdge="none" &gt;
  
              &lt;!-- android:layout_marginBottom="60.0dip" --&gt;
              &lt;!-- android:fillViewport="true" --&gt;
  
              &lt;RelativeLayout
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  android:visibility="visible" &gt;
  
                  &lt;ImageView
                      android:id="@+id/QuestionImageView"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:visibility="visible" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_below="@id/QuestionImageView"
                      android:fadingEdge="vertical"
                      android:scrollbars="vertical" /&gt;
  
                  &lt;TextView
                      android:id="@+id/questionnumber"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_alignParentRight="true"
                      android:fadingEdge="vertical"
                      android:scrollbars="vertical" /&gt;
  
                  &lt;TextView
                      android:id="@+id/question"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_alignParentRight="true"
                      android:layout_below="@id/tv"
                      android:fadingEdge="vertical"
                      android:padding="10dp"
                      android:scrollbars="vertical"
                      android:text=""
                      android:textColor="@color/dark_green" /&gt;
  
                  &lt;RadioGroup
                      android:id="@+id/radioGroup1"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_below="@id/question"
                      android:orientation="vertical" &gt;
  
                      &lt;RadioButton
                          android:id="@+id/option1"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="" /&gt;
  
                      &lt;ImageView
                          android:layout_width="fill_parent"
                          android:layout_height="1.0dp"
                          android:background="@drawable/thinnest_blue_gradient" /&gt;
  
                      &lt;RadioButton
                          android:id="@+id/option2"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="" /&gt;
  
                      &lt;ImageView
                          android:layout_width="fill_parent"
                          android:layout_height="1.0dp"
                          android:background="@drawable/thinnest_blue_gradient" /&gt;
  
                      &lt;RadioButton
                          android:id="@+id/option3"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="" /&gt;
  
                      &lt;ImageView
                          android:layout_width="fill_parent"
                          android:layout_height="1.0dp"
                          android:background="@drawable/thinnest_blue_gradient" /&gt;
  
                      &lt;RadioButton
                          android:id="@+id/option4"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="" /&gt;
                  &lt;/RadioGroup&gt;
              &lt;/RelativeLayout&gt;
          &lt;/ScrollView&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;RelativeLayout
          android:id="@+id/relativequestion"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true" &gt;
  
          &lt;com.google.ads.AdView
              android:id="@+id/ad"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              ads:adSize="SMART_BANNER"
              ads:adUnitId="a1501e5633125fb"
              ads:loadAdOnCreate="true"
              ads:testDevices="TEST_EMULATOR, 123456789ABCDEF" /&gt;
  
          &lt;LinearLayout
              android:id="@+id/newquestion"
              android:layout_width="fill_parent"
              android:layout_height="40.0dip"
              android:layout_above="@id/ad"
              android:background="#ff777777"
              android:orientation="horizontal" &gt;
  
              &lt;Button
                  android:id="@+id/PrevButton"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_centerInParent="true"
                  android:layout_marginLeft="5.0dip"
                  android:layout_weight="1.0"
                  android:background="@drawable/ibtn"
                  android:onClick="onPrevButtonClick"
                  android:text="Prev" /&gt;
  
              &lt;Button
                  android:id="@+id/NextButton"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_centerInParent="true"
                  android:layout_marginLeft="5.0dip"
                  android:layout_weight="1.0"
                  android:background="@drawable/ibtn"
                  android:onClick="onNextButtonClick"
                  android:text="Next" /&gt;
  
              &lt;Button
                  android:id="@+id/SkipButton"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_centerInParent="true"
                  android:layout_marginLeft="5.0dip"
                  android:layout_weight="1.0"
                  android:background="@drawable/ibtn"
                  android:onClick="onSkipButtonClick"
                  android:text="Skip" &gt;
              &lt;/Button&gt;
  
              &lt;Button
                  android:id="@+id/SubmitButton"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_centerInParent="true"
                  android:layout_marginLeft="5.0dip"
                  android:layout_marginRight="5.0dp"
                  android:layout_weight="1.0"
                  android:background="@drawable/ibtn"
                  android:onClick="onSubmitButtonClick"
                  android:text="Submit" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Here i want to set the layoutMarginBottom of the scrollview.Please help me.Thanks in advance.</p>