title: How to use DataBindingUtil with an Android spinner?
body: <p>I am trying to use the new Android data binding library and get the following error trying to populate a spinner with the selected value.</p>
  
  <p>Error Message (during compilation in Android Studio):</p>
  
  <blockquote>
    <p>Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
     java.lang.RuntimeException: Found data binding errors.
      ****/ data binding error ****msg:Cannot find the setter for attribute 'app:selection' with parameter type java.lang.String. file:/Users/ove/Code/AndroidStudio/Samples/Receipts/app/src/main/res/layout/dialogfragment_inputamount_db.xml loc:40:29 - 40:44 ****\ data binding error ****</p>
  </blockquote>
  
  <p>My layout file looks the following (not complete):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;data&gt;
  
          &lt;variable
              name="receipt"
              type="com.example.model.Receipt" /&gt;
      &lt;/data&gt;
      &lt;/LinearLayout&gt;
      &lt;Spinner
          android:layout_width="wrap_content"
          android:id="@+id/currency"
          android:layout_height="wrap_content"
          android:spinnerMode="dropdown"
          android:entries="@array/currency_array"
          app:selection="@{receipt.currency}" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/layout&gt;
  </code></pre>
  
  <p>Anyone out there that has managed to get data binding to work with spinners?</p>
  
  <p>Ove</p>