Pass views in OnFocusChange in data binding Android
<p>I am trying to pass views using Listener binding in onFocusChange function but get the following error </p>

<blockquote>
  <p>The callback android.view.View.OnFocusChangeListener#onFocusChange has 2 methods but the lambda defined has 1. It should have either 0 or equal number of parameters. </p>
</blockquote>

<p>Please can somebody help me in finding the right way to implement this.
</p>

<pre><code>    &lt;variable
        name="user"
        type="com.webage.www.vco_address.User" /&gt;

    &lt;variable
        name="obj"
        type="com.webage.www.colin.Validations" /&gt;



&lt;/data&gt;
    &lt;EditText
        android:id="@+id/textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="82dp"
        android:text="@={user.name}"
        android:onFocusChange="@{(view)-&gt;obj.saveClick(view, user.name)}" /&gt;
</code></pre>

<p>Validations</p>

<pre><code>public class Validations {
    public void saveClick(View view, String name){
        Log.v("saveClick",name);
    }
}
</code></pre>