工具方法积累

来源:互联网 发布:淘宝企业店铺注册入口 编辑:程序博客网 时间:2024/05/16 00:44
    public static int getColorAlpha(int color, float percent) {        return Color.argb((int) (0xff * percent), (color >> 16) & 0xff, (color >> 8) & 0xff, color & 0xff);    }
(返回相对百分比透明度色值)
0 0