GradientDrawable类: 使用实例: 将对应shape在XML文件中设置给控件 GradientDrawable gd = xx(控件).getBackground(); gd.setColor(XX);