title: Implementing Instructive Motion For ScrollView To Show a Text Preview
body: <p>Recently, I started to watch 'Android Material Design' video course on <em>developer.android.com</em>
  In lesson 4 <em>Meaningful Motion</em> there is a video called <em>Implementing Instructive Motion</em>. I tried to achieve the same output as it is shown below:
  <a href="https://i.stack.imgur.com/eSrC6.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eSrC6.gif" alt="enter image description here"></a></p>
  
  <p>Here is what I have done so far:</p>
  
  <p>In MainActivity.java:</p>
  
  <pre><code>    public void onEnterAnimationComplete() {
          super.onEnterAnimationComplete();
  Animator animator = ObjectAnimator.ofInt(mScrollView,"scrollY",300).setDuration(400);
          animator.start();
  }
  </code></pre>
  
  <p>In activity_main.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
  
      &lt;ImageView
          android:id="@+id/full_image_view"
          android:layout_width="match_parent"
          android:layout_height="300dp"
          android:scaleType="centerInside"
          /&gt;
  &lt;ScrollView
      android:id="@+id/mScrollView"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:paddingTop="300dp"
      android:layout_below="@+id/full_image_view"
      android:elevation="8dp"
      &gt;
  
  &lt;TextView
      android:id="@+id/description"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_below="@+id/full_image_view"
      android:fontFamily="sans-serif-condensed"
      android:textSize="20sp"
      android:elevation="8dp"
      android:text="@string/sample_big_text"/&gt;
  
  &lt;/ScrollView&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>My question is why the output is different?
  Any help would be greatly appreciated.</p>