title: How to keep DialogFragment positive/negative buttons above soft keyboard
body: <p>I am using a DialogFragment. I want the positive and negative buttons to remain above the keyboard when the user interacts with an edit text like in the example pics below from a screen in the Gmail tablet application.</p>
  
  <p><img src="https://i.stack.imgur.com/VFEob.png" alt="without soft keyboard"></p>
  
  <p><img src="https://i.stack.imgur.com/ecRiq.png" alt="With soft keyboard - buttons remain above keyboard as dialog resizes and content scrolls"></p>
  
  <p>In my attempt which doesn't work, here's my Dialog Fragments onCreateDialog method</p>
  
  <pre><code>@Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {   
  
      LayoutInflater factory = LayoutInflater.from(getActivity());
      final View textEntryView = factory.inflate(R.layout.my_layout, null);
  
      return new AlertDialog.Builder(getActivity())                
              .setTitle(getString(R.string.paypal))
              .setView(textEntryView)
              .setPositiveButton(R.string.dialog_ok,
                  new DialogInterface.OnClickListener() {
                      public void onClick(DialogInterface dialog, int whichButton) {                          
  
                      }
                  }
              )
              .setNegativeButton(R.string.dialog_cancel,
                  new DialogInterface.OnClickListener() {
                      public void onClick(DialogInterface dialog, int whichButton) {
  
                      }
                  }
              )
              .create();
  }
  </code></pre>
  
  <p>and here's the R.layout.my_layout</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="fill_parent"
          android:layout_height="fill_parent" 
          android:fillViewport="true"&gt;
  
  
      &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"&gt;
          &lt;ImageView android:id="@+id/paypal_button"
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginTop="15dip"
                 android:layout_marginBottom="15dip"
  
               /&gt;
          &lt;EditText
              android:id="@+id/edit_paypal_email"
                  style="@style/GeneralEditText"
                  android:hint="@string/contact_info_text_email"
                  android:inputType="textEmailAddress"
                  /&gt;
  
             &lt;View 
              android:id="@id/horizontal_line"
              style="@style/HorizontalLine"
              android:layout_marginTop="@dimen/contact_info_line_margin_top" /&gt;
  
          &lt;!-- Notes --&gt;
          &lt;TextView
              android:text="@string/paypal_info1"
              style="@style/ContactInfoNotes"
              android:paddingBottom="5dip"
              /&gt;  
  
          &lt;TextView
              android:text="@string/paypal_info2"
              style="@style/ContactInfoNotes"
              android:paddingBottom="5dip"
              /&gt;
  
          &lt;TextView
              android:text="@string/paypal_info3"
              style="@style/ContactInfoNotes"
              android:paddingBottom="5dip"
              /&gt;
          &lt;TextView
              android:text="@string/paypal_info4"
              style="@style/ContactInfoNotes"
              android:paddingBottom="5dip"
              /&gt;
  
      &lt;/LinearLayout&gt; 
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>In my implementation, the soft keyboard comes up and covers the dialogs positive and negative buttons. What am I missing to allow the buttons to remain above the keyboard?</p>
  
  <p>Thanks in advance.</p>