title: Android Data Binding Library lambda for custom Listener
body: <p><strong>This code works just fine:</strong></p>
  
  <p>Adapter code:</p>
  
  <pre><code>@BindingAdapter({"app:onClick"})
  public static void setOnClick(My view, View.OnClickListener onClickListener)
  {
     view.addOnClickListener(onClickListener);
  }
  </code></pre>
  
  <p>Xml code:</p>
  
  <pre><code>app:onClick="@{ (v) -&gt; view.onClick(v) }"
  </code></pre>
  
  <p><strong>But I need to make custom listener like this:</strong></p>
  
  <p>Adapter code:</p>
  
  <pre><code>@BindingAdapter({"app:onClose"})
  public static void setOnClose(My view, My.OnCloseListener onCloseListener)
  {
     view.addOnCloseListener(onCloseListener);
  }
  </code></pre>
  
  <p>Xml code:</p>
  
  <pre><code>app:onClose="@{ (x, y) -&gt; view.onClose(x, y) }"
  </code></pre>
  
  <p>Listener code:</p>
  
  <pre><code>public interface OnCloseListener
  {
      void onClose(My x, int y);
  }
  </code></pre>
  
  <p><strong>In this case the application does not compile(not big suprise :( ), is it even possible to use lambda with custom listener?</strong></p>