tv_show.setTextColor(getResources().getColorStateList(R.color.selector_color_333333_fea345));
企鹅找我 two2, zero0, eight8, one1 ,two2, eight8, four4, five5, eight8 ,one1
int[] colors = new int[] { Color.parseColor("#00c29a"), Color.parseColor("#333333") };//下面的第一位数组是几个就是几个颜色, int[][] states = new int[2][]; // states[0] = new int[] { android.R.attr.state_pressed, android.R.attr.state_enabled };//这个意思是这两个条件同时成立时 states[0] = new int[]{android.R.attr.state_selected};这一个条件成立时 states[1] = new int[] {};//默认时 ColorStateList colorStateList = new ColorStateList(states,colors); tv_show.setTextColor(colorStateList);