CheckBox onCheckedListener not working DataBinding
<p>Im trying to listen when the checkbox is checked or not.</p>

<p><strong>Problem</strong></p>

<p><code>onCheckedListener</code> is never called</p>

<p><strong>What have i tried</strong></p>

<p>XML</p>

<pre><code>&lt;CheckBox
   android:onCheckedChanged="@{(v, checked) -&gt; handler.onCheckedChanged(checked)}"
   ...
 /&gt;

&lt;variable
    name="handler"
    type="com.example.tiago.demo.Search.Adapter.Adapter"/&gt;
</code></pre>

<p>Adapter.java (<code>com.example.tiago.demo.Search.Adapter</code>)</p>

<pre><code>public void onCheckedChanged(boolean isCheck){
    Log.d("adapter","Is checked: ".concat(String.valueOf(isCheck)));
}
</code></pre>

<p>I read similar posts about this on forums and in here, but none of them work for me, this one is the only one that lets me compile with no problems, but when i click on the checkbox i don't get any log message.</p>

<p><strong>Notes</strong></p>

<ul>
<li>i get an error in this line <code>android:onCheckedChanged</code> unknown attribute (all the examples that i see use <code>onCheckedChanged</code> not sure why im getting this message)</li>
<li><code>onCheckedChanged</code> color is yellow the only place i call this is from xml</li>
</ul>