title: Binding varargs using android databinding library
body: <p>I am trying to write a custom setter for SwipeRefreshLayout's </p>
  
  <p><code>setColorScheme(int... colors)</code>.</p>
  
  <p>But it seems that its parameter is varargs.</p>
  
  <p>I can only bind a single color now like the following:</p>
  
  <pre><code>   @BindingAdapter("app:colorSchemeResources") 
      public static void bindRefreshColor(SwipeRefreshLayout swipeRefreshLayout,  int colorResId) {
              swipeRefreshLayout.setColorSchemeColors(colorResId);
      } 
  </code></pre>
  
  <p>xml:</p>
  
  <pre><code>  &lt;android.support.v4.widget.SwipeRefreshLayout
                  android:id="@+id/swipe_container"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  app:colorSchemeResources ="@{@color/primary}"
                  /&gt;
  </code></pre>
  
  <p>My question is:</p>
  
  <p>How can I write a custom setter for varargs?</p>
  
  <p>How to bind varargs in the xml file? </p>