title: Android ScrollView doesn't start at top, but at the beginning of the GridView
body: <p>I have a problem with a ScrollView that has inside of it a personalized GridView and other tipe of views.The first time I start the Activity, the ScrollView starts at its top, but if I visit the Activity other times the ScrollView starts at the beginning of the GridView.I used the class ExpandableHeightGridView found in <a href="https://stackoverflow.com/questions/8481844/gridview-height-gets-cut">this link</a> for my GridView.
  The xml code for the Activity layout is this one:</p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/scrollViewLuogo"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="#fff" &gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="#fff" &gt;
  
      &lt;LinearLayout
          android:id="@+id/linearLayout2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
  
          &lt;ImageView
              android:id="@+id/imageView1"
              android:layout_width="150dp"
              android:layout_height="100dp"
              android:layout_marginLeft="14dp"
              android:layout_marginRight="10dp"
              android:layout_marginTop="10dp"
              android:adjustViewBounds="true"
              android:maxHeight="200dp"
              android:maxWidth="200dp"
              android:scaleType="fitXY"
              android:src="@android:drawable/ic_menu_gallery" /&gt;
  
          &lt;LinearLayout
              android:id="@+id/linearLayout1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="10dp"
              android:orientation="vertical" &gt;
  
              &lt;TextView
                  android:id="@+id/nomeTVActivityLuogo"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:textStyle="bold"
                  android:textSize="17sp"
                  android:textColor="#005788" /&gt;
  
              &lt;TextView
                  android:id="@+id/indirizzoTVActivityLuogo"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/linearLayout2"
          android:layout_marginTop="10dp"
          android:orientation="vertical" &gt;
  
          &lt;ImageView
              android:id="@+id/imageViewMappaLuogo"
              android:layout_width="wrap_content"
              android:layout_height="60dp"
              android:layout_marginBottom="10dp"
              android:layout_marginLeft="14dp"
              android:layout_marginRight="14dp"
              android:layout_marginTop="5dp"
              android:scaleType="fitXY"
              android:src="@drawable/sfondo_mappa" /&gt;
  
          &lt;TextView
              android:id="@+id/textView1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="14dp"
              android:text="Immagini"
              android:textColor="#97d6f9" /&gt;
  
          &lt;View
              android:layout_width="fill_parent"
              android:layout_height="2dp"
              android:layout_marginLeft="14dp"
              android:layout_marginRight="14dp"
              android:layout_marginTop="5dp"
              android:background="#97d6f9" /&gt;
  
          &lt;com.example.mappine.ExpandableHeightGridView
              android:id="@+id/gridViewLuogo"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:layout_marginBottom="10dp"
              android:layout_marginLeft="10dp"
              android:layout_marginRight="10dp"
              android:layout_marginTop="10dp"
              android:numColumns="3" &gt;
          &lt;/com.example.mappine.ExpandableHeightGridView&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>I've tried using the code <code>scrollView.fullScroll(ScrollView.FOCUS_UP);</code> but it didn't work.And even with <code>scrollView.scrollTo(0, 0);</code> I didn't have success.
  The only code that worked was:</p>
  
  <pre><code>    scrollView.post(new Runnable() 
        { 
           public void run() { 
               scrollViewLuogo.fullScroll(ScrollView.FOCUS_UP); 
           } 
        });
  </code></pre>
  
  <p>but it makes a fast animation from the top of the GridView to the top of the screen and i don't like it.</p>
  
  <p>Any suggestion??</p>