title: Parallax and Pin collapse modes not working in Collapsing Toolbar Layout
body: <p>This is my code of my test project:-
  Main Activity</p>
  
  <pre><code> package com.invento.defcomm.collapsingtoolbarlayout;
  
  import android.support.design.widget.CollapsingToolbarLayout;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.support.v7.widget.Toolbar;
  import android.view.Menu;
  import android.view.MenuItem;
  
  public class MainActivity extends AppCompatActivity {
  private Toolbar toolbar;
  private CollapsingToolbarLayout collapsingToolbarLayout;
  public static final int COLLAPSE_MODE_PARALLAX=2;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      toolbar= (Toolbar) findViewById(R.id.app_bar);
      setSupportActionBar(toolbar);
      getSupportActionBar().setDisplayShowHomeEnabled(true);
      collapsingToolbarLayout= (CollapsingToolbarLayout) findViewById(R.id.collpasing_toolbar);
      collapsingToolbarLayout.setTitle("TEST COLLAPSING TOOLBAR");
      collapsingToolbarLayout.setExpandedTitleColor(getResources().getColor(R.color.expandedTitleColor));
  }
  
  
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.menu_main, menu);
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // Handle action bar item clicks here. The action bar will
      // automatically handle clicks on the Home/Up button, so long
      // as you specify a parent activity in AndroidManifest.xml.
      int id = item.getItemId();
  
      //noinspection SimplifiableIfStatement
      if (id == R.id.action_settings) {
          return true;
      }
  
      return super.onOptionsItemSelected(item);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>activity main xml file:</p>
  
  <pre><code> &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context=".MainActivity"&gt;
  
  &lt;android.support.design.widget.AppBarLayout
      android:id="@+id/app_bar_layout"
      android:layout_width="match_parent"
      android:layout_height="192dp"&gt;
  
      &lt;android.support.design.widget.CollapsingToolbarLayout
          android:id="@+id/collpasing_toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          app:contentScrim="@color/contentscrim"
          app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;
  
          &lt;ImageView
              android:layout_width="match_parent"
              android:layout_height="192dp"
              android:scaleType="centerCrop"
              android:src="@drawable/index"
              app:layout_collapseMode="parallax"
              app:layout_collapseParallaxMultiplier="0.7"/&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/app_bar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
              app:layout_collapseMode="pin" /&gt;
      &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>color xml file:-</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
     &lt;color name="contentscrim"&gt;#846735&lt;/color&gt;
     &lt;color name="expandedTitleColor"&gt;#ffffff&lt;/color&gt;
     &lt;/resources&gt;
  </code></pre>
  
  <p>style xml file:-</p>
  
  <pre><code> &lt;resources&gt;
  
  &lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
  &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>The problem is that the activity loads up fine. There is no error in there. But the Parallax scroll effect is not working. Is there something I 'm missing? Please point it out.  </p>