title: How do int color codes in android work?
body: <p>I have the following problem: </p>
  
  <p>I have a list view, I want to assign a gradient color to item separator ( Divider) of this list view. I am using the following code: </p>
  
  <pre><code>    list = (ListView) findViewById(R.id.list);
      int[] colors = { 0, 0xffffff00, 0 }; 
      list.setDivider(new GradientDrawable(Orientation.RIGHT_LEFT, colors));
      list.setDividerHeight(4);
  </code></pre>
  
  <p>I looked up the color code (0xffffff00) from: <a href="http://developer.android.com/reference/android/graphics/Color.html" rel="noreferrer">http://developer.android.com/reference/android/graphics/Color.html</a></p>
  
  <p><strong><em>PROBLEM:</em></strong></p>
  
  <p>However this color is Yellow, what I want is golden. I am also interested to know how this works, I mean how can I define the color of my choice, so far I tried to understand from the developer site but it is not much clear. </p>