title: Android databinding. How to set layout xml file for generated *Binding class
body: <p>Let's assume I have my layout file <code>myview.xml</code> which created with databinding in mind. Then android will generate <code>MyViewBinding</code> class for me. And in some examples I saw code like this:</p>
  
  <pre><code>MyViewBinding mbinding = DataBindingUtils.inflate(inflatter, R.layout.myview, parent, false)
  /// using mbinding somehow.
  </code></pre>
  
  <p>However if I don't want to use <code>DataBindingUtils</code> and wan't to use <code>MyViewBinding</code> directly I'm facing with the problem. <code>MyViewBinding.inflate</code> have different signature than <code>DataBindingUtils.inflate</code> and <strong>don't</strong> accept layout id (in this example it's <code>R.layout.myview</code>) as parameter. </p>
  
  <p>So my question is - if I'm using generated binding class like <code>MyViewBinding</code> how could I say it which layout file it should use?</p>