title: Android DataBinding in CustomView <merge> not able to resolve Resources
body: <p>Trying to use DataBinding in a CustomView(Group)</p>
  
  <p>layout looks like this:</p>
  
  <pre><code>&lt;layout
  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"&gt;
  
  &lt;merge
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;CheckBox
          android:id="@+id/customview_checkbox1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:tag="@string/checkbox_value_key"
          android:text="My CheckBox"/&gt;
      ....
  &lt;/merge&gt;
  &lt;/layout&gt;
  </code></pre>
  
  <p>CustomView (extends FrameLayout) inflation:</p>
  
  <pre><code>view = DataBindingUtil.inflate((LayoutInflater) getContext().getSystemService(Context
              .LAYOUT_INFLATER_SERVICE), R.layout.custom_view, this, true);
  </code></pre>
  
  <p>results in this error:</p>
  
  <pre><code>Error:(46, 61) error: cannot find symbol method getResources()
  </code></pre>
  
  <p>Generated Binding Class:</p>
  
  <pre><code>public ViewBodyPartsBinding(android.databinding.DataBindingComponent bindingComponent, View[] root) {
      super(bindingComponent, root[0], 0);
      final Object[] bindings = mapBindings(bindingComponent, root, 9, sIncludes, sViewsWithIds);
      this.mboundView0 = (android.widget.ImageView) bindings[0];
      this.mboundView0.setTag(null);
      this.mboundView2 = (android.support.percent.PercentRelativeLayout) bindings[2];
      this.mboundView2.setTag(null);
      ....
      this.customviewCheckbox1 = (android.widget.CheckBox) bindings[1];
      this.customviewCheckbox1.setTag(root.getResources().getString(&lt;package&gt;.R.string.checkbox_value_key));
      ....
      setRootTag(root);
      // listeners
      invalidateAll();
  }
  </code></pre>