I am trying to create a ColorStateList programatically using this: ColorStateList stateList = new ColorStateList(states, colors); But I am not sure what are the two parameters. As per the documentation: public ColorStateList (int[][] states, int[] colors) Added in API level 1 Creates a ColorStateList that returns the specified mapping from states to colors. Can somebody please explain me how to cr