Questions tagged «android-color»

8
如何以编程方式创建ColorStateList?
我正在尝试ColorStateList使用此程序创建一个程序: ColorStateList stateList = new ColorStateList(states, colors); 但是我不确定这两个参数是什么。 根据文档: public ColorStateList (int[][] states, int[] colors) 在API级别1中添加 创建一个ColorStateList,它返回从状态到颜色的指定映射。 有人可以解释一下如何创建吗? 二维状态数组的含义是什么?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.