转自 https://my.oschina.net/deepSprings/blog/1808945 GradientDrawable gd = (GradientDrawable)tv_quan.getBackground();