title: Android- how to autoscroll when keyboard is up
body: <p>I've this big problem: when i click on edittext and the keyboard is up, the keyboard covers the button. I've searched the solution around the web but adjustresize, adjustpan don't work. I've tried also to use <code>getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);</code> but doesn't work.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/scrollView1"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/sfondo3"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:isScrollContainer="true"
       &gt;
  
  &lt;RelativeLayout 
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center_horizontal" &gt;
  
      &lt;TextView
          android:id="@+id/nickname"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="200dp"
          android:text="Inserisci un Nickname:"
          android:textSize="20dp" /&gt;
  
      &lt;Button
          android:id="@+id/b1"
          android:layout_width="120dp"
          android:layout_height="50dp"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="350dp"
          android:text="Accedi" /&gt;
  
  
  
      &lt;EditText
          android:id="@+id/editText1"
          android:layout_width="200dp"
          android:layout_height="50dp"
           android:layout_marginTop="250dp"
            android:windowSoftInputMode="adjustPan"
          android:layout_centerHorizontal="true"
          android:ems="10" /&gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="20dp"
          android:src="@drawable/logox" /&gt;
  
  
  
  &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>