title: access integer array using DataBinding
body: <p>I am trying to create <code>RecyclerView</code> with use of DataBinding for Integer data, i have already tried with String data by declaring <code>string-array</code> in <code>string.xml</code>, <a href="https://stackoverflow.com/a/34276174/3134215">here</a> is answer from where i have taken reference.</p>
  
  <p>Now i am trying to implement it with <code>integer-array</code> but not able to access it from xml.</p>
  
  <p>Here is my integer.xml</p>
  
  <pre><code>&lt;integer-array name="hours"&gt;
      &lt;item&gt;1&lt;/item&gt;
      &lt;item&gt;2&lt;/item&gt;
      &lt;item&gt;3&lt;/item&gt;
      &lt;item&gt;4&lt;/item&gt;
      &lt;item&gt;5&lt;/item&gt;
      &lt;item&gt;6&lt;/item&gt;
      &lt;item&gt;7&lt;/item&gt;
      &lt;item&gt;8&lt;/item&gt;
      &lt;item&gt;9&lt;/item&gt;
      &lt;item&gt;10&lt;/item&gt;
      &lt;item&gt;11&lt;/item&gt;
      &lt;item&gt;12&lt;/item&gt;
  &lt;/integer-array&gt;
  </code></pre>
  
  <p>here is my xml file</p>
  
  <pre><code>&lt;android.support.v7.widget.RecyclerView
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          app:entries="@{@integerArray/hours}"&gt;
  </code></pre>
  
  <p>and my custom binding adapter</p>
  
  <pre><code>@BindingAdapter("entries")
  public static void entries(RecyclerView recyclerView, Integer[] array) {
      recyclerView.setAdapter(new SimpleArrayAdapter(array));
  }
  </code></pre>
  
  <p>But it is showing me error <code>line 1:0 token recognition error at: '@integerArray/'</code></p>
  
  <pre><code>Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
  &gt; java.lang.RuntimeException: Found data binding errors.
  ****/ data binding error ****msg:Identifiers must have user defined types from the XML file. hours is missing
  </code></pre>