美文网首页
渐变背景

渐变背景

作者: roy_0620 | 来源:发表于2018-04-13 11:14 被阅读0次

int colors[] = { color1 , color2 , color3};

GradientDrawable bg =new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors);

actionBar.setBackgroundDrawable(bg);

相关文章

  • 渐变背景

    int colors[] = { color1 , color2 , color3}; GradientDrawa...

  • 渐变背景

    1.在drawable文件夹下创建一些渐变颜色文件color1.xml color2.xml color3.xml...

  • 控件背景样式汇总

    圆角背景 渐变色背景 TextView文字渐变色 圆形背景

  • CSS渐变之背景、边框、字体渐变

    使用CSS实现背景色渐变、边框渐变,字体渐变的效果。 背景色渐变 效果如图: linear-gradient: (...

  • CSS3渐变色--文字渐变和背景渐变

    文字渐变 背景渐变 所有代码

  • day03

    公共样式 1.网格背景 2.网格背景升级 3.径向渐变 4.径向渐变升级 5棋盘背景 6随机背景渐变 1 2 3

  • 颜色渐变/渐变高亮/背景颜色渐变

    background: linear-gradient(to right, #ff6034, #ee0a24); ...

  • 背景颜色渐变

    思路 通过几个Plane颜色变化,实现背景色叠加渐变: Plane需要设置半透明 颜色值均随机(R、G、B) 颜色...

  • 网站背景渐变

    高端大气上档次!今天这组素材拿来做网页设计背景、Banner促销广告,特别是PPT,气质格调瞬间拉高几个Level...

  • UIView渐变背景

    项目需要,需要在图片上显示文字,但是文字的颜色很难控制,有时候与背景图的颜色很接近导致文字难以看清楚,可以通过将图...

网友评论

      本文标题:渐变背景

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