title: android-integrate databinding with BottomSheet
body: <p>while integrating the BottomSheet we need to make the parent layout as the CoordinatorLayout but in databinding we use <code>&lt;layout&gt;</code>. While implementing this it throws an exception :-</p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: The view is not a child of CoordinatorLayout.
  </code></pre>
  
  <p>How to integrate BottomSheet with databinding</p>
  
  <pre><code>&lt;layout&gt;
  
  &lt;data&gt;
  
      &lt;import type="android.view.View" /&gt;
  
      &lt;variable
          name="cabLayoutBinder"
          type="newage.com.hopin.rideBooking.CabSelectActivity" /&gt;
  
      &lt;variable
          name="modelBinder"
          type="newage.com.hopin.rideBooking.model.DataBinders" /&gt;
  
      &lt;variable
          name="fareSetters"
          type="newage.com.hopin.rideBooking.model.FareDetails" /&gt;
  &lt;/data&gt;
  
  &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=".rideBooking.CabSelectActivity"&gt;
  
     &lt;/android.support.design.widget.CoordinatorLayout&gt;
  
  &lt;/layout&gt;
  </code></pre>