{"id":1664,"date":"2016-07-26T11:18:10","date_gmt":"2016-07-26T03:18:10","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=1664"},"modified":"2026-08-18T12:58:51","modified_gmt":"2026-08-18T04:58:51","slug":"google%e6%8e%a8%e8%8d%90%e7%9a%84%e5%9b%be%e7%89%87%e5%8a%a0%e8%bd%bd%e5%ba%93glide%e4%bb%8b%e7%bb%8d%e4%b8%8epicsso%e6%af%94%e8%be%83","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=1664","title":{"rendered":"Google\u63a8\u8350\u7684\u56fe\u7247\u52a0\u8f7d\u5e93Glide\u4ecb\u7ecd\u4e0epicsso\u6bd4\u8f83"},"content":{"rendered":"<section id=\"wenyan\" style=\"font-family: system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', Roboto, sans-serif; line-height: 1.75; font-size: 16px; color: #000000; caret-color: #000000;\" data-provider=\"WenYan\">\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">Glide \u662f bumptech \u5199\u7684\u56fe\u7247\u52a0\u8f7d\u5e93\uff0cGoogle \u5b98\u65b9\u5e94\u7528\u4e5f\u5728\u7528\u3002\u5b83\u548c Picasso \u5927\u7ea6\u4e5d\u6210\u76f8\u4f3c\uff0c\u4f46\u9ed8\u8ba4 RGB_565\u3001\u6309 ImageView \u5c3a\u5bf8\u89e3\u7801\u3001\u78c1\u76d8\u7f13\u5b58\u7b56\u7565\u548c GIF \u652f\u6301\u90fd\u4e0d\u4e00\u6837\u3002\u672c\u7bc7\u5bf9\u7167 API\u3001\u5185\u5b58\u3001\u753b\u8d28\u548c\u5305\u4f53\u79ef\uff0c\u8bf4\u660e\u4ec0\u4e48\u65f6\u5019\u66f4\u8be5\u7528 Glide\u3002<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px;\">\u5728\u6cf0\u56fd\u4e3e\u884c\u7684\u8c37\u6b4c\u5f00\u53d1\u8005\u8bba\u575b\u4e0a\uff0c\u8c37\u6b4c\u4e3a\u6211\u4eec\u4ecb\u7ecd\u4e86\u4e00\u4e2a\u540d\u53eb <a href=\"https:\/\/github.com\/bumptech\/glide\" target=\"_blank\" rel=\"noopener\">Glide<\/a> \u7684\u56fe\u7247\u52a0\u8f7d\u5e93\uff0c\u4f5c\u8005\u662fbumptech\u3002\u8fd9\u4e2a\u5e93\u88ab\u5e7f\u6cdb\u7684\u8fd0\u7528\u5728google\u7684\u5f00\u6e90\u9879\u76ee\u4e2d\uff0c\u5305\u62ec2014\u5e74google I\/O\u5927\u4f1a\u4e0a\u53d1\u5e03\u7684\u5b98\u65b9app\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5b83\u7684\u6210\u529f\u8ba9\u6211\u975e\u5e38\u611f\u5174\u8da3\u3002\u6211\u82b1\u4e86\u4e00\u6574\u665a\u7684\u65f6\u95f4\u628a\u73a9\uff0c\u51b3\u5b9a\u5206\u4eab\u4e00\u4e9b\u81ea\u5df1\u7684\u7ecf\u9a8c\u3002\u5728\u5f00\u59cb\u4e4b\u524d\u6211\u60f3\u8bf4\uff0cGlide\u548cPicasso\u670990%\u7684\u76f8\u4f3c\u5ea6\uff0c\u51c6\u786e\u7684\u8bf4\uff0c\u5c31\u662fPicasso\u7684\u514b\u9686\u7248\u672c\u3002\u4f46\u662f\u5728\u7ec6\u8282\u4e0a\u8fd8\u662f\u6709\u4e0d\u5c11\u533a\u522b\u7684\u3002<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u5bfc\u5165\u5e93<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">Picasso\u548cGlide\u90fd\u5728jcenter\u4e0a\u3002\u5728\u9879\u76ee\u4e2d\u6dfb\u52a0\u4f9d\u8d56\u975e\u5e38\u7b80\u5355\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><strong>Picasso<\/strong><\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">dependencies {\n    compile 'com.squareup.picasso:picasso:2.5.1'\n}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><strong>Glide<\/strong><\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">dependencies {\n    compile 'com.github.bumptech.glide:glide:3.5.2'\n    compile 'com.android.support:support-v4:22.0.0'\n}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">Glide\u9700\u8981\u4f9d\u8d56<strong>Support Library v4<\/strong>\uff0c\u522b\u5fd8\u4e86\u3002\u5176\u5b9e<strong>Support Library v4<\/strong>\u5df2\u7ecf\u662f\u5e94\u7528\u7a0b\u5e8f\u7684\u6807\u914d\u4e86\uff0c\u8fd9\u4e0d\u662f\u4ec0\u4e48\u95ee\u9898\u3002<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u57fa\u7840<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u5c31\u5982\u6211\u6240\u8bf4\u7684Glide\u548cPicasso\u975e\u5e38\u76f8\u4f3c\uff0cGlide\u52a0\u8f7d\u56fe\u7247\u7684\u65b9\u6cd5\u548cPicasso\u5982\u51fa\u4e00\u8f99\u3002<\/p>\n<p class=\"code-caption\">\n<p style=\"margin: 1em 0px;\"><strong>Picasso<\/strong><\/p>\n<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">Picasso.with(context)\n    .load(\"<a href=\"http:\/\/inthecheesefactory.com\/uploads\/source\/glidepicasso\/cover.jpg\" rel=\"fancybox\">http:\/\/inthecheesefactory.com\/uploads\/source\/glidepicasso\/cover.jpg<\/a>\")\n    .into(ivImg);<\/code><\/pre>\n<p class=\"code-caption\">\n<p style=\"margin: 1em 0px;\"><strong>Glide<\/strong><\/p>\n<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">Glide.with(context)\n    .load(\"<a href=\"http:\/\/inthecheesefactory.com\/uploads\/source\/glidepicasso\/cover.jpg\" rel=\"fancybox\">http:\/\/inthecheesefactory.com\/uploads\/source\/glidepicasso\/cover.jpg<\/a>\")\n    .into(ivImg);<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u867d\u7136\u4e24\u8005\u770b\u8d77\u6765\u4e00\u6837\uff0c\u4f46\u662fGlide\u66f4\u6613\u7528\uff0c\u56e0\u4e3aGlide\u7684with\u65b9\u6cd5\u4e0d\u5149\u63a5\u53d7Context\uff0c\u8fd8\u63a5\u53d7Activity \u548c Fragment\uff0cContext\u4f1a\u81ea\u52a8\u7684\u4ece\u4ed6\u4eec\u83b7\u53d6\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427445293711143.png\" alt=\"with\" width=\"656\" height=\"328\"><\/p>\n<p style=\"margin: 1em 0px;\">\u540c \u65f6\u5c06Activity\/Fragment\u4f5c\u4e3awith()\u53c2\u6570\u7684\u597d\u5904\u662f\uff1a\u56fe\u7247\u52a0\u8f7d\u4f1a\u548cActivity\/Fragment\u7684\u751f\u547d\u5468\u671f\u4fdd\u6301\u4e00\u81f4\uff0c\u6bd4\u5982 Paused\u72b6\u6001\u5728\u6682\u505c\u52a0\u8f7d\uff0c\u5728Resumed\u7684\u65f6\u5019\u53c8\u81ea\u52a8\u91cd\u65b0\u52a0\u8f7d\u3002\u6240\u4ee5\u6211\u5efa\u8bae\u4f20\u53c2\u7684\u65f6\u5019\u4f20\u9012Activity \u548c Fragment\u7ed9Glide\uff0c\u800c\u4e0d\u662fContext\u3002<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u9ed8\u8ba4Bitmap\u683c\u5f0f\u662fRGB_565<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u4e0b\u9762\u662f\u52a0\u8f7d\u56fe\u7247\u65f6\u548cPicasso\u7684\u6bd4\u8f83\uff081920&#215;1080 \u50cf\u7d20\u7684\u56fe\u7247\u52a0\u8f7d\u5230768&#215;432\u7684ImageView\u4e2d\uff09<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427445293137409.jpg\" alt=\"firstload\" width=\"819\" height=\"435\"><\/p>\n<p style=\"margin: 1em 0px;\">\u53ef\u4ee5\u770b\u5230Glide\u52a0\u8f7d\u7684\u56fe\u7247\u8d28\u91cf\u8981\u5dee\u4e8ePicasso\uff08ps\uff1a\u6211\u770b\u4e0d\u51fa\u6765\u54c8\uff09\uff0c\u4e3a\u4ec0\u4e48\uff1f\u8fd9\u662f\u56e0\u4e3aGlide\u9ed8\u8ba4\u7684Bitmap\u683c\u5f0f\u662f<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">RGB_565<\/code> \uff0c\u6bd4<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">ARGB_8888<\/code>\u683c\u5f0f\u7684\u5185\u5b58\u5f00\u9500\u8981\u5c0f\u4e00\u534a\u3002\u4e0b\u9762\u662fPicasso\u5728ARGB8888\u4e0b\u4e0eGlide\u5728RGB565\u4e0b\u7684\u5185\u5b58\u5f00\u9500\u56fe\uff08\u5e94\u7528\u81ea\u8eab\u5360\u7528\u4e868m\uff0c\u56e0\u6b64\u4ee58\u4e3a\u57fa\u51c6\u7ebf\u6bd4\u8f83\uff09\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"width-100percent\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427445293965030.png\" alt=\"ram1_1\" width=\"686\" height=\"307\"><\/p>\n<p style=\"margin: 1em 0px;\">\u5982\u679c\u4f60\u5bf9\u9ed8\u8ba4\u7684<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">RGB_565<\/code>\u6548\u679c\u8fd8\u6bd4\u8f83\u6ee1\u610f\uff0c\u53ef\u4ee5\u4e0d\u505a\u4efb\u4f55\u4e8b\uff0c\u4f46\u662f\u5982\u679c\u4f60\u89c9\u5f97\u96be\u4ee5\u63a5\u53d7\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">GlideModule<\/code>\u5c06Bitmap\u683c\u5f0f\u8f6c\u6362\u5230<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">ARGB_8888<\/code>\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">public class GlideConfiguration implements GlideModule {\n \n    @Override\n    public void applyOptions(Context context, GlideBuilder builder) {\n        \/\/ Apply options to the builder here.\n        builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);\n    }\n \n    @Override\n    public void registerComponents(Context context, Glide glide) {\n        \/\/ register ModelLoaders here.\n    }\n}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">\u540c\u65f6\u5728<code>AndroidManifest.xml<\/code>\u4e2d\u5c06<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">GlideModule<\/code>\u5b9a\u4e49\u4e3a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">meta-data<\/code><\/code><\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">&lt;meta-data android:name=\"com.inthecheesefactory.lab.glidepicasso.GlideConfiguration\"\n            android:value=\"GlideModule\"\/&gt;<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"width-100percent\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427445294447874.jpg\" alt=\"quality2\" width=\"819\" height=\"435\"><\/p>\n<p style=\"margin: 1em 0px;\">\u8fd9\u6837\u770b\u8d77\u6765\u5c31\u4f1a\u597d\u5f88\u591a\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u6211\u4eec\u518d\u6765\u770b\u770b\u5185\u5b58\u5f00\u9500\u56fe\uff0c\u8fd9\u6b21\u8c8c\u4f3cGlide\u82b1\u8d39\u4e86\u4e24\u500d\u4e8e\u4e0a\u6b21\u7684\u5185\u5b58\uff0c\u4f46\u662fPicasso\u7684\u5185\u5b58\u5f00\u9500\u4ecd\u7136\u8fdc\u5927\u4e8eGlide\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"width-100percent\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427445294918728.png\" alt=\"ram2_1\" width=\"771\" height=\"345\"><\/p>\n<p style=\"margin: 1em 0px;\">\u539f\u56e0\u5728\u4e8ePicasso\u662f\u52a0\u8f7d\u4e86\u5168\u5c3a\u5bf8\u7684\u56fe\u7247\u5230\u5185\u5b58\uff0c\u7136\u540e\u8ba9GPU\u6765\u5b9e\u65f6\u91cd\u7ed8\u5927\u5c0f\u3002\u800cGlide\u52a0\u8f7d\u7684\u5927\u5c0f\u548cImageView\u7684\u5927\u5c0f\u662f\u4e00\u81f4\u7684\uff0c\u56e0\u6b64\u66f4\u5c0f\u3002\u5f53\u7136\uff0cPicasso\u4e5f\u53ef\u4ee5\u6307\u5b9a\u52a0\u8f7d\u7684\u56fe\u7247\u5927\u5c0f\u7684\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">Picasso.with(this)\n    .load(\"<a href=\"http:\/\/nuuneoi.com\/uploads\/source\/playstore\/cover.jpg\" rel=\"fancybox\">http:\/\/nuuneoi.com\/uploads\/source\/playstore\/cover.jpg<\/a>\")\n    .resize(768, 432)\n    .into(ivImgPicasso);<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u4f46\u662f\u95ee\u9898\u5728\u4e8e\u4f60\u9700\u8981\u4e3b\u52a8\u8ba1\u7b97ImageView\u7684\u5927\u5c0f\uff0c\u6216\u8005\u8bf4\u4f60\u7684ImageView\u5927\u5c0f\u662f\u5177\u4f53\u7684\u503c\uff08\u800c\u4e0d\u662fwrap_content\uff09\uff0c\u4f60\u4e5f\u53ef\u4ee5\u8fd9\u6837\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">Picasso.with(this)\n    .load(\"<a href=\"http:\/\/nuuneoi.com\/uploads\/source\/playstore\/cover.jpg\" rel=\"fancybox\">http:\/\/nuuneoi.com\/uploads\/source\/playstore\/cover.jpg<\/a>\")\n    .fit()\n    .centerCrop()\n    .into(ivImgPicasso);<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u73b0\u5728Picasso\u7684\u5185\u5b58\u5f00\u9500\u5c31\u548cGlide\u5dee\u4e0d\u591a\u4e86\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"width-100percent\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427445294433243.png\" alt=\"memory3\" width=\"807\" height=\"361\"><\/p>\n<p style=\"margin: 1em 0px;\">\u867d\u7136\u5185\u5b58\u5f00\u9500\u5dee\u8ddd\u4e0d\u5230\uff0c\u4f46\u662f\u5728\u8fd9\u4e2a\u95ee\u9898\u4e0aGlide\u5b8c\u80dcPicasso\u3002\u56e0\u4e3aGlide\u53ef\u4ee5\u81ea\u52a8\u8ba1\u7b97\u51fa\u4efb\u610f\u60c5\u51b5\u4e0b\u7684ImageView\u5927\u5c0f\u3002<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">Image\u8d28\u91cf\u7684\u7ec6\u8282<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u8fd9\u662f\u5c06ImageView\u8fd8\u539f\u5230\u771f\u5b9e\u5927\u5c0f\u65f6\u7684\u6bd4\u8f83\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"width-100percent\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427445294704430.png\" alt=\"quality3\" width=\"720\" height=\"387\"><\/p>\n<p style=\"margin: 1em 0px;\">\u4f60\u53ef\u4ee5\u770b\u5230\uff0cGlide\u52a0\u8f7d\u7684\u56fe\u7247\u6ca1\u6709Picasso\u90a3\u4e48\u5e73\u6ed1\uff0c\u6211\u8fd8\u6ca1\u6709\u627e\u5230\u4e00\u4e2a\u53ef\u4ee5\u76f4\u89c2\u6539\u53d8\u56fe\u7247\u5927\u5c0f\u8c03\u6574\u7b97\u6cd5\u7684\u65b9\u6cd5\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u4f46\u662f\u8fd9\u5e76\u4e0d\u7b97\u4ec0\u4e48\u574f\u4e8b\uff0c\u56e0\u4e3a\u5f88\u96be\u5bdf\u89c9\u3002<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u78c1\u76d8\u7f13\u5b58<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">Picasso\u548cGlide\u5728\u78c1\u76d8\u7f13\u5b58\u7b56\u7565\u4e0a\u6709\u5f88\u5927\u7684\u4e0d\u540c\u3002Picasso\u7f13\u5b58\u7684\u662f\u5168\u5c3a\u5bf8\u7684\uff0c\u800cGlide\u7f13\u5b58\u7684\u662f\u8ddfImageView\u5c3a\u5bf8\u76f8\u540c\u7684\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"width-100percent\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427445294110987.jpg\" alt=\"cache\" width=\"787\" height=\"335\"><\/p>\n<p style=\"margin: 1em 0px;\">\u4e0a\u9762\u63d0\u5230\u7684\u5e73\u6ed1\u5ea6\u7684\u95ee\u9898\u4f9d\u7136\u5b58\u5728\uff0c\u800c\u4e14\u5982\u679c\u52a0\u8f7d\u7684\u662fRGB565\u56fe\u7247\uff0c\u90a3\u4e48\u7f13\u5b58\u4e2d\u7684\u56fe\u7247\u4e5f\u662fRGB565\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u6211 \u5c1d\u8bd5\u5c06ImageView\u8c03\u6574\u6210\u4e0d\u540c\u5927\u5c0f\uff0c\u4f46\u4e0d\u7ba1\u5927\u5c0f\u5982\u4f55Picasso\u53ea\u7f13\u5b58\u4e00\u4e2a\u5168\u5c3a\u5bf8\u7684\u3002Glide\u5219\u4e0d\u540c\uff0c\u5b83\u4f1a\u4e3a\u6bcf\u79cd\u5927\u5c0f\u7684ImageView\u7f13\u5b58 \u4e00\u6b21\u3002\u5c3d\u7ba1\u4e00\u5f20\u56fe\u7247\u5df2\u7ecf\u7f13\u5b58\u4e86\u4e00\u6b21\uff0c\u4f46\u662f\u5047\u5982\u4f60\u8981\u5728\u53e6\u5916\u4e00\u4e2a\u5730\u65b9\u518d\u6b21\u4ee5\u4e0d\u540c\u5c3a\u5bf8\u663e\u793a\uff0c\u9700\u8981\u91cd\u65b0\u4e0b\u8f7d\uff0c\u8c03\u6574\u6210\u65b0\u5c3a\u5bf8\u7684\u5927\u5c0f\uff0c\u7136\u540e\u5c06\u8fd9\u4e2a\u5c3a\u5bf8\u7684\u4e5f\u7f13\u5b58\u8d77\u6765\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5177\u4f53\u8bf4\u6765\u5c31\u662f\uff1a\u5047\u5982\u5728\u7b2c\u4e00\u4e2a\u9875\u9762\u6709\u4e00\u4e2a200&#215;200\u7684ImageView\uff0c\u5728\u7b2c\u4e8c\u4e2a\u9875\u9762\u6709\u4e00\u4e2a100&#215;100\u7684ImageView\uff0c\u8fd9\u4e24\u4e2aImageView\u672c\u6765\u662f\u8981\u663e\u793a\u540c\u4e00\u5f20\u56fe\u7247\uff0c\u5374\u9700\u8981\u4e0b\u8f7d\u4e24\u6b21\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u4e0d\u8fc7\uff0c\u4f60\u53ef\u4ee5\u6539\u53d8\u8fd9\u79cd\u884c\u4e3a\uff0c\u8ba9Glide\u65e2\u7f13\u5b58\u5168\u5c3a\u5bf8\u53c8\u7f13\u5b58\u5176\u4ed6\u5c3a\u5bf8\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">Glide.with(this)\n     .load(\"<a href=\"http:\/\/nuuneoi.com\/uploads\/source\/playstore\/cover.jpg\" rel=\"fancybox\">http:\/\/nuuneoi.com\/uploads\/source\/playstore\/cover.jpg<\/a>\")\n     .diskCacheStrategy(DiskCacheStrategy.ALL)\n     .into(ivImgGlide);<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u4e0b\u6b21\u5728\u4efb\u4f55ImageView\u4e2d\u52a0\u8f7d\u56fe\u7247\u7684\u65f6\u5019\uff0c\u5168\u5c3a\u5bf8\u7684\u56fe\u7247\u5c06\u4ece\u7f13\u5b58\u4e2d\u53d6\u51fa\uff0c\u91cd\u65b0\u8c03\u6574\u5927\u5c0f\uff0c\u7136\u540e\u7f13\u5b58\u3002<\/p>\n<p style=\"margin: 1em 0px;\">Glide\u7684\u8fd9\u79cd\u65b9\u5f0f\u4f18\u70b9\u662f\u52a0\u8f7d\u663e\u793a\u975e\u5e38\u5feb\u3002\u800cPicasso\u7684\u65b9\u5f0f\u5219\u56e0\u4e3a\u9700\u8981\u5728\u663e\u793a\u4e4b\u524d\u91cd\u65b0\u8c03\u6574\u5927\u5c0f\u800c\u5bfc\u81f4\u4e00\u4e9b\u5ef6\u8fdf\uff0c\u5373\u4fbf\u4f60\u6dfb\u52a0\u4e86\u8fd9\u6bb5\u4ee3\u7801\u6765\u8ba9\u5176\u7acb\u5373\u663e\u793a\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/Picasso\n.noFade();<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/allimg\/150327\/163Aa632-0.gif\" alt=\"loading3\"><\/p>\n<p style=\"margin: 1em 0px;\">Picasso\u548cGlide\u5404\u6709\u6240\u957f\uff0c\u4f60\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5bf9\u6211\u800c\u8a00\uff0c\u6211\u66f4\u559c\u6b22Glide\uff0c\u56e0\u4e3a\u5b83\u8fdc\u6bd4Picasso\u5feb\uff0c\u867d\u7136\u9700\u8981\u66f4\u5927\u7684\u7a7a\u95f4\u6765\u7f13\u5b58\u3002<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u7279\u6027<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u4f60\u53ef\u4ee5\u505a\u5230\u51e0\u4e4e\u548cPicasso\u4e00\u6837\u591a\u7684\u4e8b\u60c5\uff0c\u4ee3\u7801\u4e5f\u51e0\u4e4e\u4e00\u6837\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><strong><strong>Image Resizing<\/strong><\/strong><\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/ Picasso\n.resize(300, 200);\n \n\/\/ Glide\n.override(300, 200);<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><strong>Center Cropping<\/strong><\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/ Picasso\n.centerCrop();\n \n\/\/ Glide\n.centerCrop();<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><strong>Transforming<\/strong><\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/ Picasso\n.transform(new CircleTransform())\n \n\/\/ Glide\n.transform(new CircleTransform(context))<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u8bbe\u7f6e\u5360\u4f4d\u56fe\u6216\u8005\u52a0\u8f7d\u9519\u8bef\u56fe\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/ Picasso\n.placeholder(R.drawable.placeholder)\n.error(R.drawable.imagenotfound)\n \n\/\/ Glide\n.placeholder(R.drawable.placeholder)\n.error(R.drawable.imagenotfound)<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u51e0\u4e4e\u548cPicasso\u4e00\u6837\uff0c\u4ecePicasso\u8f6c\u6362\u5230Glide\u5bf9\u4f60\u6765\u8bf4\u5c31\u662f\u5c0f\u83dc\u4e00\u789f\u3002<\/p>\n<p style=\"margin: 1em 0px;\">&nbsp;<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u6709\u4ec0\u4e48Glide\u53ef\u4ee5\u505a\u800cPicasso \u505a\u4e0d\u5230<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">Glide\u53ef\u4ee5\u52a0\u8f7dGIF\u52a8\u6001\u56fe\uff0c\u800cPicasso\u4e0d\u80fd\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427445366503084.gif\" alt=\"gifanimation2\"><\/p>\n<p style=\"margin: 1em 0px;\">\u540c\u65f6\u56e0\u4e3aGlide\u548cActivity\/Fragment\u7684\u751f\u547d\u5468\u671f\u662f\u4e00\u81f4\u7684\uff0c\u56e0\u6b64gif\u7684\u52a8\u753b\u4e5f\u4f1a\u81ea\u52a8\u7684\u968f\u7740Activity\/Fragment\u7684\u72b6\u6001\u6682\u505c\u3001\u91cd\u653e\u3002Glide \u7684\u7f13\u5b58\u5728gif\u8fd9\u91cc\u4e5f\u662f\u4e00\u6837\uff0c\u8c03\u6574\u5927\u5c0f\u7136\u540e\u7f13\u5b58\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u4f46\u662f\u4ece\u6211\u7684\u4e00\u6b21\u6d4b\u8bd5\u7ed3\u679c\u6765\u770bGlide \u52a8\u753b\u4f1a\u6d88\u8d39\u592a\u591a\u7684\u5185\u5b58\uff0c\u56e0\u6b64\u8c28\u614e\u4f7f\u7528\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u9664\u4e86gif\u52a8\u753b\u4e4b\u5916\uff0cGlide\u8fd8\u53ef\u4ee5\u5c06\u4efb\u4f55\u7684\u672c\u5730\u89c6\u9891\u89e3\u7801\u6210\u4e00\u5f20\u9759\u6001\u56fe\u7247\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u8fd8\u6709\u4e00\u4e2a\u7279\u6027\u662f\u4f60\u53ef\u4ee5\u914d\u7f6e\u56fe\u7247\u663e\u793a\u7684\u52a8\u753b\uff0c\u800cPicasso\u53ea\u6709\u4e00\u79cd\u52a8\u753b\uff1afading in\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u6700\u540e\u4e00\u4e2a\u662f\u53ef\u4ee5\u4f7f\u7528<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">thumbnail()\u4ea7\u751f\u4e00\u4e2a\u4f60\u6240\u52a0\u8f7d\u56fe\u7247\u7684thumbnail\u3002<\/code><\/p>\n<p style=\"margin: 1em 0px;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">\u5176\u5b9e\u8fd8\u6709\u4e00\u4e9b\u7279\u6027\uff0c\u4e0d\u8fc7\u4e0d\u662f\u975e\u5e38\u91cd\u8981\uff0c\u6bd4\u5982\u5c06\u56fe\u50cf\u8f6c\u6362\u6210\u5b57\u8282\u6570\u7ec4\u7b49\u3002<\/code><\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u914d\u7f6e<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u6709\u8bb8\u591a\u53ef\u4ee5\u914d\u7f6e\u7684\u9009\u9879\uff0c\u6bd4\u5982\u5927\u5c0f\uff0c\u7f13\u5b58\u7684\u78c1\u76d8\u4f4d\u7f6e\uff0c\u6700\u5927\u7f13\u5b58\u7a7a\u95f4\uff0c\u4f4d\u56fe\u683c\u5f0f\u7b49\u7b49\u3002\u53ef\u4ee5\u5728\u8fd9\u4e2a\u9875\u9762\u67e5\u770b\u8fd9\u4e9b\u914d\u7f6e<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\"><a href=\"https:\/\/github.com\/bumptech\/glide\/wiki\/Configuration\" target=\"_blank\" rel=\"noopener\">Configuration<\/a> <\/code>\u3002<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u5e93\u7684\u5927\u5c0f<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">Picasso (v2.5.1)\u7684\u5927\u5c0f\u7ea6118kb\uff0c\u800cGlide (v3.5.2)\u7684\u5927\u5c0f\u7ea6430kb\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"width-100percent\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427453389115686.png\" alt=\"librarysize\" width=\"778\" height=\"313\"><\/p>\n<p style=\"margin: 1em 0px;\">Anyway 312KB difference might not be that significant.<\/p>\n<p style=\"margin: 1em 0px;\">\u4e0d\u8fc7312kb\u7684\u5dee\u8ddd\u5e76\u4e0d\u662f\u5f88\u91cd\u8981\u3002<\/p>\n<p style=\"margin: 1em 0px;\">Picasso\u548cGlide\u7684\u65b9\u6cd5\u4e2a\u6570\u5206\u522b\u662f840\u548c2678\u4e2a\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"width-100percent\" src=\"http:\/\/www.jcodecraeer.com\/uploads\/20150327\/1427453390188737.png\" alt=\"methodcount\" width=\"786\" height=\"375\"><\/p>\n<p style=\"margin: 1em 0px;\">\u5fc5\u987b\u6307\u51fa\uff0c\u5bf9\u4e8eDEX\u6587\u4ef665535\u4e2a\u65b9\u6cd5\u7684\u9650\u5236\u6765\u8bf4\uff0c2678\u662f\u4e00\u4e2a\u76f8\u5f53\u5927\u7684\u6570\u5b57\u4e86\u3002\u5efa\u8bae\u5728\u4f7f\u7528Glide\u7684\u65f6\u5019\u5f00\u542fProGuard\u3002<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u603b\u7ed3<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">Glide\u548cPicasso\u90fd\u662f\u975e\u5e38\u5b8c\u7f8e\u7684\u5e93\u3002Glide\u52a0\u8f7d\u56fe\u50cf\u4ee5\u53ca\u78c1\u76d8\u7f13\u5b58\u7684\u65b9\u5f0f\u90fd\u8981\u4f18\u4e8ePicasso\uff0c\u901f\u5ea6\u66f4\u5feb\uff0c\u5e76\u4e14Glide\u66f4\u6709\u5229\u4e8e\u51cf\u5c11OutOfMemoryError\u7684\u53d1\u751f\uff0cGIF\u52a8\u753b\u662fGlide\u7684\u6740\u624b\u950f\u3002\u4e0d\u8fc7Picasso\u7684\u56fe\u7247\u8d28\u91cf\u66f4\u9ad8\u3002\u4f60\u66f4\u559c\u6b22\u54ea\u4e2a\u5462\uff1f<\/p>\n<p style=\"margin: 1em 0px;\">\u867d\u7136\u6211\u4f7f\u7528\u4e86\u5f88\u957f\u65f6\u95f4\u7684Picasso\uff0c\u4f46\u662f\u6211\u5f97\u627f\u8ba4\u73b0\u5728\u6211\u66f4\u559c\u6b22Glide\u3002\u6211\u7684\u5efa\u8bae\u662f\u4f7f\u7528Glide\uff0c\u4f46\u662f\u5c06Bitmap\u683c\u5f0f\u6362\u6210 ARGB_8888\u3001\u8ba9Glide\u7f13\u5b58\u540c\u65f6\u7f13\u5b58\u5168\u5c3a\u5bf8\u548c\u6539\u53d8\u5c3a\u5bf8\u4e24\u79cd\u3002<\/p>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u76f8\u5173\u8d44\u6e90<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">&#8211;&nbsp;<a href=\"http:\/\/google-opensource.blogspot.com\/2014\/09\/glide-30-media-management-library-for.html\" target=\"_blank\" rel=\"noopener\">Glide 3.0: a media management library for Android<\/a><\/p>\n<p style=\"margin: 1em 0px;\">&#8211; <a href=\"https:\/\/github.com\/bumptech\/glide\/wiki\" target=\"_blank\" rel=\"noopener\">Glide Wiki<\/a><\/p>\n<p style=\"margin: 1em 0px;\">&#8211;&nbsp;<a href=\"http:\/\/pluu.github.io\/android%20study\/2015\/01\/15\/android-glide-picasso\/\" target=\"_blank\" rel=\"noopener\">Android Picasso vs Glide<\/a><\/p>\n<p style=\"margin: 1em 0px;\">&#8211;&nbsp;<a href=\"http:\/\/vardhan-justlikethat.blogspot.com\/2014\/09\/android-image-loading-libraries-picasso.html\" target=\"_blank\" rel=\"noopener\">Android: Image loading libraries Picasso vs Glide<\/a><\/p>\n<p style=\"margin: 1em 0px;\">\u82f1\u6587\u539f\u6587 <a href=\"http:\/\/inthecheesefactory.com\/blog\/get-to-know-glide-recommended-by-google\/en\" target=\"_self\" rel=\"noopener\">Introduction to Glide, Image Loader Library for Android, recommended by Google<\/a><\/p>\n<p style=\"margin: 1em 0px;\">\u8f6c\u81f3:http:\/\/www.jcodecraeer.com\/a\/anzhuokaifa\/androidkaifa\/2015\/0327\/2650.html<\/p>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\" width=\"817\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u5bf9\u6bd4\u70b9<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">Picasso<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">Glide<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u9ed8\u8ba4 Bitmap<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">ARGB_8888<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">RGB_565<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">with() \u53c2\u6570<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">Context<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">Context \/ Activity \/ Fragment<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">GIF<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u4e0d\u652f\u6301<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u78c1\u76d8\u7f13\u5b58<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u539f\u56fe\u5c3a\u5bf8<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u6309 ImageView \u5c3a\u5bf8\u5404\u5b58\u4e00\u4efd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\"><strong>\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1aGlide \u51e0\u4e4e\u662f Picasso \u7684\u4eb2\u5144\u5f1f\uff0c\u4f46\u9ed8\u8ba4\u66f4\u7701\u5185\u5b58\u3001\u7ed1\u5b9a Activity\/Fragment \u751f\u547d\u5468\u671f\uff0c\u8fd8\u80fd\u64ad GIF\uff1b\u8981\u753b\u8d28\u53ef\u4ee5\u6539\u56de ARGB_8888\uff0c\u9009\u5e93\u65f6\u8fde\u5305\u4f53\u79ef\u4e00\u8d77\u770b\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Glide \u662f bumptech \u5199\u7684\u56fe\u7247\u52a0\u8f7d\u5e93\uff0cGoogle \u5b98\u65b9\u5e94\u7528\u4e5f\u5728\u7528\u3002\u5b83\u548c Picasso \u5927\u7ea6\u4e5d\u6210 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3498,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[66,202],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1664"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1664"}],"version-history":[{"count":3,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1664\/revisions"}],"predecessor-version":[{"id":3733,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1664\/revisions\/3733"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/media\/3498"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}