2017年9月27日

不改变view 的背景形状的情况下改变颜色

摘要: GradientDrawable myGrad = (GradientDrawable) tv_target.getBackground(); int color = getAlphaColor(255, getAlphaColor1(255, 81, alpha), getAlphaColor1(255, 83, alpha), 1); // 动态生成的颜色,可用来过度 ... 阅读全文

posted @ 2017-09-27 16:03 leojiao123 阅读(86) 评论(0) 推荐(0) 编辑

getResource().getColor() 过时

摘要: 在Java代码中设置控件的Color时,用getResources().getColor()出现如下提示: 替代方法 特此记录 阅读全文

posted @ 2017-09-27 10:57 leojiao123 阅读(237) 评论(0) 推荐(0) 编辑

导航