title: Programatically change the color of a selector in normal state
body: <p>I've got the below selector. It's in fact a shape inside a selector. I'm doing it like so because apparently Android 5 doesn't support a shape with corners unless it's inside a selector.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item&gt;
          &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
                 android:shape="rectangle"&gt;
              &lt;corners
                  android:radius="@dimen/a_menu_corner_radius"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>Anyway ... the thing is I want to change the color of the shape, programatically. I've created this util method:</p>
  
  <pre><code>/**
   * @param view
   * @param colorValue a color value, not a resource ID !!!
   * @throws java.lang.ClassCastException in case the drawable is not a selector
   */
  public static void setColorToSelectorNormalState(View view, int colorValue) throws ClassCastException {
      if (view != null) {
          Drawable background = view.getBackground();
          if (!(background instanceof StateListDrawable)) {
              throw new ClassCastException("The drawable must inherit the StateListDrawable class. (the drawable set needs to be a selector !)");
          }
  
          ((StateListDrawable) background).addState(new int[]{android.R.attr./*?????????*/}, new ColorDrawable(colorValue));
      }
  }
  </code></pre>
  
  <p>... but I can't figure out what to put as a state param. (see the /<em>????</em>/ part). The ting has only one state anyway, the "normal" one, but there's no state attribute for "normal", or is there?</p>
  
  <p>Any ideas ?</p>