安卓,加密drawable图像资源、从类文件生成drawable
原理:将图像文件先转码为字符串,在类代码逻辑中通过图像名称检索对应的图像数据串,将字符串还原为Drawable。Drawable pic = getDrawable(context, "thumbsup_close"); // 获取图像thumbsup_close/** 根据资源名称,获取Drawable */@SuppressWarnings("deprecation")...
原创
2018-11-12 17:26:32 ·
119437 阅读 ·
0 评论