ColorStateList Android Programatically
<p>I am trying to create a ColorStateList programatically  using this - </p>

<pre><code>ColorStateList stateList = new ColorStateList(states, colors); 
</code></pre>

<p>But i am not sure what are the two parameters .<br></p>

<p>As per the documentation- <br></p>

<pre><code>public ColorStateList (int[][] states, int[] colors) 
Added in API level 1
Creates a ColorStateList that returns the specified mapping from states to colors. 
</code></pre>

<p>Can somebody please explain me how to create this ?<br></p>

<pre><code>What is the meaning of two-dimensional array for states?
</code></pre>

<p>Any Help will be highly appreciated.</p>
