Drawable

GradientDrawable

GradientDrawable drawable = (GradientDrawable) viewCenter.getBackground();
    drawable.setColor(Color.parseColor(info.get("membershiplevelcolor").toString()));//设置背景色

https://www.jianshu.com/p/dbccf8dfe3ef

你可能感兴趣的:(Drawable)