Enable/disable EditText based on whether adapter has items
<p>I'm using Data Binding Library. I have this in the XML:</p>

<pre><code>&lt;EditText
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:enabled="@{!myAdapter.isEmpty}"/&gt;
</code></pre>

<p>I want that EditText to be enabled only when Spinner adapter is not empty. When app starts, EditText is disabled. So far, so good.</p>

<p>Then, in my activity, items are inserted in the adapter. But after:</p>

<pre><code>myAdapter.notifyDataSetChanged();
</code></pre>

<p>EditText is not enabled. Do I have to do anything more?</p>