title: RuntimeException: Could not inflate Behavior subclass
body: <p>I new in android and I've troubles with <code>FloatingActionButton</code> behaivors</p>
  
  <p>My custom behavoir class:</p>
  
  <pre><code>public class ScrollingFABBehavior extends FloatingActionButton.Behavior {
      private static final String TAG = "ScrollingFABBehavior";
  
      public ScrollingFABBehavior(Context context, AttributeSet attrs,
              Handler mHandler) {
          super();
      }
  
      @Override
      public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout,
              FloatingActionButton child, View directTargetChild, View target,
              int nestedScrollAxes) {
          return nestedScrollAxes == ViewCompat.SCROLL_AXIS_VERTICAL
                  || super.onStartNestedScroll(coordinatorLayout, child,
                          directTargetChild, target, nestedScrollAxes);
      }
  
      @Override
      public void onNestedScroll(CoordinatorLayout coordinatorLayout,
              FloatingActionButton child, View target, int dxConsumed,
              int dyConsumed, int dxUnconsumed, int dyUnconsumed) {
          super.onNestedScroll(coordinatorLayout, child, target, dxConsumed,
                  dyConsumed, dxUnconsumed, dyUnconsumed);
          if (dyConsumed &gt; 0 &amp;&amp; child.getVisibility() == View.VISIBLE) {
              child.hide();
          } else if (dyConsumed &lt; 0 &amp;&amp; child.getVisibility() == View.GONE) {
              child.show();
          }
      }
  
      @Override
      public void onStopNestedScroll(CoordinatorLayout coordinatorLayout,
              FloatingActionButton
              child, View target) {
          super.onStopNestedScroll(coordinatorLayout, child, target);
      }
  }
  </code></pre>
  
  <p>Fragment XML:</p>
  
  <p>...
              
          </p>
  
  <pre><code>&lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/share_fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|end"
          android:layout_margin="@dimen/fab_margin"
          android:contentDescription="@string/action_share"
          android:elevation="@dimen/fab_elevation"
          android:src="@drawable/ic_share"
          app:layout_behavior=".ScrollingFABBehavior"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>RuntimeError when fragment inflate xml:</p>
  
  <pre><code>07-14 08:52:43.904 30785-30785/com.example.xyzreader E/AndroidRuntime: FATAL EXCEPTION: main
                                                                         Process: com.example.xyzreader, PID: 30785
                                                                         android.view.InflateException: Binary XML file line #115: Could not inflate Behavior subclass com.example.xyzreader.ui.ScrollingFABBehavior
                                                                         Caused by: java.lang.RuntimeException: Could not inflate Behavior subclass com.example.xyzreader.ui.ScrollingFABBehavior
                                                                             at android.support.design.widget.CoordinatorLayout.parseBehavior(CoordinatorLayout.java:615)
                                                                             at android.support.design.widget.CoordinatorLayout$LayoutParams.&lt;init&gt;(CoordinatorLayout.java:2652)
  </code></pre>
  
  <p>e.t.c</p>
  
  <p>Whats wrong?</p>