Android databinding: set default visibility in xml : <p>I show items in recyclerview and use <strong>databinding</strong>. In xml layout I has such view:</p>

<pre><code> &lt;include
        android:visibility="@{viewmodel.expandable ? View.VISIBLE : View.GONE}"
        bind:viewmodel="@{viewmodel}"
        layout="@layout/full_station_layout"/&gt;
</code></pre>

<p>It works well but I has one issue: while recyclerview initializing and bind items to views this layout flashes once on the screen although initial value viewmodel.expandable is false. So, I decided temporary hide this layout and tried using <strong>default</strong>-parameter in xml like this:</p>

<pre><code>        &lt;include
        android:visibility="@{viewmodel.expandable ? View.VISIBLE : View.GONE, default=View.GONE}"
        bind:viewmodel="@{viewmodel}"
        layout="@layout/full_station_layout"/&gt;
</code></pre>

<p>But something went wrong:</p>

<pre><code>error: 'View' is incompatible with attribute android:visibility (attr) enum [gone=2, invisible=1, visible=0].
</code></pre>

<p>So, or I incorrectly use this parameter or Google remove this keyword from xml databinding rules (I've seen example of usage <strong>default</strong>-keyword in xml on Google developers before, but now I couldn't)</p>
