title: Can I databind a ProgressBar in Android?
body: <p>Is it possible to use data-binding for a SeekBar or ProgressBar in Android? I have this data element:</p>
  
  <pre><code>&lt;data&gt;
    &lt;variable
       name="foo"
       type="com.example.Foo" /&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>If I refer to the variable foo.bar (which is an int) in a TextField, it works as expected:</p>
  
  <pre><code>&lt;TextView
    android:text="@{String.valueOf(foo.bar)}"
    [...]
  </code></pre>
  
  <p>What I tried to do was this:</p>
  
  <pre><code>&lt;SeekBar
    android:progress="@{foo.bar}"
    [...]
  </code></pre>
  
  <p>but it wasn't recognized. (As soon as I wrote an "@" between the quotes, it got red in the editor). Is there another way of data-binding it?</p>