How to set SwipeRefreshLayout refreshing property using android data binding?
<p>I am using android data binding library. 
If I want to make a view visible I can write something like this:</p>

<pre><code>&lt;TextView
            android:id="@+id/label_status"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:text="@{habitListViewModel.message}"
            app:visibility="@{habitListViewModel.hasError ? View.VISIBLE : View.GONE}" /&gt;
</code></pre>

<p>Is there an option to bind to a refresh property of swipeRefreshLayout in a similar (xml) way? </p>

<p>Currently I am setting it in code by calling setRefreshing(true/false) but would love to make it in xml to be consistent. </p>