如果是纯色的
,我如何获得视图的当前颜色? int color = Color.TRANSPARENT;
Drawable background = rootLayer.getBackground();
if (background instanceof ColorDrawable)
color = ((ColorDrawable) background).getColor();
此if语句永远不会返回tru