美文网首页
代码中改变shape的颜色

代码中改变shape的颜色

作者: 小相柳 | 来源:发表于2016-05-03 10:42 被阅读69次

    android:background="@drawable/shape_daily_spike_bg_blue"

    改变背景颜色可以这么做:

    GradientDrawable bgShape = (GradientDrawable)mView.getBackground();

    bgShape.setColor();

    相关文章

      网友评论

          本文标题:代码中改变shape的颜色

          本文链接:https://www.haomeiwen.com/subject/dzglrttx.html