改变背景色
<span style="font-size:18px;"> button.setBackgroundColor(int c);</span>
获取背景色
<span style="font-size:18px;"> button.setBackgroundColor(int c);</span>
Drawable background=button.getBackground();
ColorDrawable colorDrawable = (ColorDrawable) background;
int color=colorDrawable.getColor();