原理:
将图像文件先转码为字符串,在类代码逻辑中通过图像名称检索对应的图像数据串,将字符串还原为Drawable。
Drawable pic = getDrawable(context, "thumbsup_close"); // 获取图像thumbsup_close
/** 根据资源名称,获取Drawable */
@SuppressWarnings("deprecation")
public static Drawable getDrawable(Context context, String drawableName)
{
if (DrawableClass.Contains(drawableName))
return DrawableClass.getDrawable(drawableName);
else // 若DrawableClass中不含有图像,则从资源路径下解析
{
int id = getId(context, drawableName, "drawable");
// Drawable pic = context.getResources().getDrawable(id); // 从Resources直接获取图像尺寸会被修改
InputStream in = context.getResources().openRawResource(id); // 直接解析未处理过的图像资源保持原有尺寸
Bitmap bitmap = BitmapFactory.decodeStream(in);
// String bitmapStr = PicTool.ToString(bitmap); // 获取图像的字符串形式
BitmapDrawable pic = new BitmapDrawable(bitmap);
return pic;
}
}
/** 根据资源类型、名称,获取资源id */
public static int getId(Context context, String name, String defType)
{
return context.getResources().getIdentifier(name, defType, context.getPackageName());
}
package com.sci.tools;
import java.util.HashMap;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
/** DrawableClass.java: 图像资源封装类,将图像资源转化为字符串形式,存储在当前类代码中。getDrawable(图像名称)获取对应的图像 ----- 2018-11-9 下午5:37:30 scimence */
public class DrawableClass
{
private static HashMap picDatas = new HashMap();
/** 设置图像和其对应数据 */
private static void InitPics()
{
if (picDatas.size() == 0)
{
picDatas.put(
"thumbsup_close",
"89504e470d0a1a0a0000000d49484452000000200000001f08060000008656cf8c000000097048597300000b1300000b1301009a9c1800000a4d6943435050686f746f73686f70204943432070726f66696c65000078da9d53775893f7163edff7650f5642d8f0b1976c81002223ac08c81059a21092006184101240c585880a561415119c4855c482d50a489d88e2a028b867418a885a8b555c38ee1fdca7b57d7aefededfbd7fbbce79ce7fcce79cf0f8011122691e6a26a003952853c3ad81f8f4f48c4c9bd80021548e0042010e6cbc26705c50000f00379787e74b03ffc01af6f00020070d52e2412c7e1ff83ba50265700209100e02212e70b01905200c82e54c81400c81800b053b3640a009400006c797c422200aa0d00ecf4493e0500d8a993dc1700d8a21ca908008d0100992847240240bb00605581522c02c0c200a0ac40222e04c0ae018059b632470280bd0500768e58900f4060008099422ccc0020380200431e13cd03204c03a030d2bfe0a95f7085b8480100c0cb95cd974bd23314b895d01a77f2f0e0e221e2c26cb142611729106609e4229c979b231348e7034cce0c00001af9d1c1fe383f90e7e6e4e1e666e76ceff4c5a2fe6bf06f223e21f1dffebc8c020400104ecfefda5fe5e5d60370c701b075bf6ba95b00da560068dff95d33db09a05a0ad07af98b7938fc401e9ea150c83c1d1c0a0b0bed2562a1bd30e38b3eff33e16fe08b7ef6fc401efedb7af000719a4099adc0a383fd71616e76ae528ee7cb0442316ef7e723fec7857ffd8e29d1e234b15c2c158af15889b850224dc779b952914421c995e212e97f32f11f96fd0993770d00ac864fc04eb607b5cb6cc07eee01028b0e58d27600407ef32d8c1a0b91001067343279f7000093bff98f402b0100cd97a4e30000bce8185ca894174cc608000044a0812ab041070cc114acc00e9cc11dbcc01702610644400c24c03c104206e4801c0aa11896411954c03ad804b5b0031aa0119ae110b4c131380de7e0125c81eb70170660189ec218bc86090441c8081361213a8811628ed822ce0817998e04226148349280a420e988145122c5c872a402a9426a915d4823f22d7214398d5c40fa90dbc820328afc8abc47319481b25103d4027540b9a81f1a8ac6a073d174340f5d8096a26bd11ab41e3d80b6a2a7d14be87574007d8a8e6380d1310e668cd9615c8c87456089581a26c71663e55835568f35631d583776151bc09e61ef0824028b8013ec085e8410c26c82909047584c5843a825ec23b412ba085709838431c2272293a84fb4257a12f9c478623ab1905846ac26ee211e219e255e270e135f9348240ec992e44e0a21259032490b496b48db482da453a43ed210699c4c26eb906dc9dee408b280ac209791b7900f904f92fbc9c3e4b7143ac588e24c09a22452a494124a35653fe504a59f324299a0aa51cda99ed408aa883a9f5a496da076502f5387a91334759a25cd9b1643cba42da3d5d09a696769f7682fe974ba09dd831e4597d097d26be807e9e7e983f4770c0d860d83c7486228196b197b19a718b7192f994ca605d39799c85430d7321b9967980f986f55582af62a7c1591ca12953a9556957e95e7aa545573553fd579aa0b54ab550fab5e567da64655b350e3a909d416abd5a91d55bba936aece5277528f50cf515fa3be5ffd82fa630db2868546a08648a35463b7c6198d2116c63265f15842d6725603eb2c6b984d625bb2f9ec4c7605fb1b762f7b4c534373aa66ac6691669de671cd010ec6b1e0f039d99c4ace21ce0dce7b2d032d3f2db1d66aad66ad7ead37da7adabeda62ed72ed16edebdaef75709d409d2c9df53a6d3af77509ba36ba51ba85badb75cfea3ed363eb79e909f5caf50ee9ddd147f56df4a3f517eaefd6efd11f373034083690196c313863f0cc9063e86b9869b8d1f084e1a811cb68ba91c468a3d149a327b826ee8767e33578173e66ac6f1c62ac34de65dc6b3c61626932dba4c4a4c5e4be29cd946b9a66bad1b4d374ccccc82cdcacd8acc9ec8e39d59c6b9e61bed9bcdbfc8d85a5459cc54a8b368bc796da967ccb05964d96f7ac98563e567956f556d7ac49d65ceb2ceb6dd6576c501b579b0c9b3a9bcbb6a8ad9badc4769b6ddf14e2148f29d229f5536eda31ecfcec0aec9aec06ed39f661f625f66df6cf1dcc1c121dd63b743b7c727475cc766c70bceba4e134c3a9c4a9c3e957671b67a1739df33517a64b90cb1297769717536da78aa76e9f7acb95e51aeebad2b5d3f5a39bbb9bdcadd96dd4ddcc3dc57dabfb4d2e9b1bc95dc33def41f4f0f758e271cce39da79ba7c2f390e72f5e765e595efbbd1e4fb39c269ed6306dc8dbc45be0bdcb7b603a3e3d65facee9033ec63e029f7a9f87bea6be22df3dbe237ed67e997e07fc9efb3bfacbfd8ff8bfe179f216f14e056001c101e501bd811a81b3036b031f049904a50735058d05bb062f0c3e15420c090d591f72936fc017f21bf96333dc672c9ad115ca089d155a1bfa30cc264c1ed6118e86cf08df107e6fa6f94ce9ccb60888e0476c88b81f69199917f97d14292a32aa2eea51b453747174f72cd6ace459fb67bd8ef18fa98cb93bdb6ab6727667ac6a6c526c63ec9bb880b8aab8817887f845f1971274132409ed89e4c4d8c43d89e37302e76c9a339ce49a54967463aee5dca2b917e6e9cecb9e773c593559907c3885981297b23fe5832042502f184fe5a76e4d1d13f2849b854f45bea28da251b1b7b84a3c92e69d5695f638dd3b7d43fa68864f4675c633094f522b79911992b923f34d5644d6deaccfd971d92d39949c949ca3520d6996b42bd730b728b74f662b2b930de479e66dca1b9387caf7e423f973f3db156c854cd1a3b452ae500e164c2fa82b785b185b78b848bd485ad433df66feeaf9230b82167cbd90b050b8b0b3d8b87859f1e022bf45bb16238b5317772e315d52ba647869f0d27dcb68cbb296fd50e2585255f26a79dcf28e5283d2a5a5432b82573495a994c9cb6eaef45ab9631561956455ef6a97d55b567f2a17955fac70aca8aef8b046b8e6e2574e5fd57cf5796ddadade4ab7caedeb48eba4eb6eacf759bfaf4abd6a41d5d086f00dad1bf18de51b5f6d4ade74a17a6af58ecdb4cdcacd03356135ed5bccb6acdbf2a136a3f67a9d7f5dcb56fdadabb7bed926dad6bfdd777bf30e831d153bdeef94ecbcb52b78576bbd457df56ed2ee82dd8f1a621bbabfe67eddb847774fc59e8f7ba57b07f645efeb6a746f6cdcafbfbfb2096d52368d1e483a70e59b806fda9bed9a77b5705a2a0ec241e5c127dfa67c7be350e8a1cec3dcc3cddf997fb7f508eb48792bd23abf75ac2da36da03da1bdefe88ca39d1d5e1d47beb7ff7eef31e36375c7358f579ea09d283df1f9e48293e3a764a79e9d4e3f3dd499dc79f74cfc996b5d515dbd6743cf9e3f1774ee4cb75ff7c9f3dee78f5df0bc70f422f762db25b74bad3dae3d477e70fde148af5b6feb65f7cbed573cae74f44deb3bd1efd37ffa6ac0d573d7f8d72e5d9f79bdefc6ec1bb76e26dd1cb825baf5f876f6ed17770aee4cdc5d7a8f78affcbedafdea07fa0fea7fb4feb165c06de0f860c060cfc3590fef0e09879efe94ffd387e1d247cc47d52346238d8f9d1f1f1b0d1abdf264ce93e1a7b2a713cfca7e56ff79eb73abe7dffde2fb4bcf58fcd8f00bf98bcfbfae79a9f372efaba9af3ac723c71fbcce793df1a6fcadcedb7defb8efbadfc7bd1f9928fc40fe50f3d1fa63c7a7d04ff73ee77cfefc2ff784f3fb25d29f33000000206348524d00007a25000080830000f9ff000080e9000075300000ea6000003a980000176f925fc5460000024f4944415478dac497c14bdb5018c07f4959656ca9633b0816d6a159c183d0622f3b0d0a3b1406f55028050b15c4ebfc13f20f0c468fbb7af0b2930ebd8850b5d88363430f8238a46c86c5c3585751d621ee928c244dd3e6c575dfed7def0bbf5f1e2fdf7b91aa8a82195160112800cfccf16d4607d803de016fcd3192291007de032986139f8097c0996cbee9c610e198ac0d202a9bcb3ecdf0631a588ce446465e038fadec7836cbd3f979eec5e37c3f38084d51e7e6785228204912edd353f7744caa2aca2f6bc3c5549517abab489108009f5756f8a869c2f0b4a631592a0170737dcde6ec2cade363c7c694edbb7d3499fc0b07982c95480b0ad8e1005224424c55dd6551d93e32ea752e75dd512122e186035cea3a46bdde55eb10e8b45a6c572a5c1986b08417fcca30d8ae54e8b45afe020017cd26b5725948a217bc562e73d16c7a3e237b25452444e03d05824a88c27d0506950803b7ce829b7e45f713099e2f2f73776ccc91ff7972d2f5690581f75d817e2b11163eb0809f44187820014be2bcd1f09c3b6f3402c3030ba4358d443eef3997c8e785dab61ca6bdba43a46dcb61daebeec242a8b63d9080df77fe6d6747b86d0f24304893097376f80a04e9706124e4db3a584425ba04268a45e1deee2731512cf614e8d8130f53a9501dae97c4a39919cf7219f860cf7c5d5f775ca344daab2561bfde7d595bf32a3d94aa8af20a7863cf8e26933c989a42dfdae277bb2d7c2bbea3288c67b3fc383a72df86ad5892aa8a1205f6ffc3cfc92190b1f640ce4c0c139eb3fe0b00ce800cb004d4fe2178d764644c267f06000ca271c445e506d50000000049454e44ae426082");
picDatas.put(
"thumbsup_msg_finish",
"89504e470d0a1a0a0000000d4948445200000119000000580806000000c163836a0000001974455874536f6674776172650041646f626520496d616765526561647971c9653c0000031469545874584d4c3a636f6d2e61646f62652e786d7000000000003c3f787061636b657420626567696e3d22efbbbf222069643d2257354d304d7043656869487a7265537a4e54637a6b633964223f3e203c783a786d706d65746120786d6c6e733a783d2261646f62653a6e733a6d6574612f2220783a786d70746b3d2241646f626520584d5020436f726520352e362d633131312037392e3135383332352c20323031352f30392f31302d30313a31303a32302020202020202020223e203c7264663a52444620786d6c6e733a7264663d22687474703a2f2f7777772e77332e6f72672f313939392f30322f32322d7264662d73796e7461782d6e7323223e203c7264663a4465736372697074696f6e207264663a61626f75743d222220786d6c6e733a786d704d4d3d22687474703a2f2f6e732e61646f62652e636f6d2f7861702f312e302f6d6d2f2220786d6c6e733a73745265663d22687474703a2f2f6e732e61646f62652e636f6d2f7861702f312e302f73547970652f5265736f75726365526566232220786d6c6e733a786d703d22687474703a2f2f6e732e61646f62652e636f6d2f7861702f312e302f2220786d704d4d3a446f63756d656e7449443d22786d702e6469643a46303243343241344443323831314538413044343835354235444331333641312220786d704d4d3a496e7374616e636549443d22786d702e6969643a46303243343241334443323831314538413044343835354235444331333641312220786d703a43726561746f72546f6f6c3d2241646f62652050686f746f73686f7020434320323031352057696e646f7773223e203c786d704d4d3a4465726976656446726f6d2073745265663a696e7374616e636549443d223646413845363539313934363932383235464431313932343631313832394238222073745265663a646f63756d656e7449443d223646413845363539313934363932383235464431313932343631313832394238222f3e203c2f7264663a4465736372697074696f6e3e203c2f7264663a5244463e203c2f783a786d706d6574613e203c3f787061636b657420656e643d2272223f3ec560d20200000e704944415478daec9d7d8c54d519c6cf7e501aba02822814cdeed21641424125add822ab49ad49adec1f2228362c69a17ed460032468822c3455821ad75651202d4b8a14c5b68bfa8fb6d12524d0463e6d11342d2c450495af45a469c1ddbe6fef733a87cbbd33f7cef7cc3ebfe4d999b973e6cedd33739e79df73df7b6f457777b7c923178bae178d135d2b1a24ba4434507491a8da1042b2c139d1a7a263a20f45ef89de17ed116d169dc8d78654e4d8642a441344b7891a44578b2af9f9135250ba443b446f895e156d12e5cc08726532d7881a45778bea7dcf9d8093ee81b3be07a73d06e73dc7ef002119518dcc4033842f8bae140d178d442671b1affd7ed11ad12adc2f6a931925fab9e87b4eead30da77c45d40e07ede2f780908250898ce246d1f79169543829d63ad112d1ee623399a1a227447738e9d07e38e39a5cb82321242bd423e398e1641d1a04bc249a27faa0d026a3d1ca6c51b3a806cb76c309d731f521a4a452aca9a2f9c84894d318db4f6732963331997ab8dd383c3e249a8b654c870829dd744a3392c7459763d9562cdb9fee0ad3e13ee3cdad8c83c33d291a81e885064348e9d285713c12e3fa1cc6f94ed1e47c4532cb45b3707f3f1c6e2b3f1b42ca9271c84eec7ccdcf448fe42a92a9f219cc7ae3cd52d36008295f747c8fc5785716c007aab26d325508a1acc12c4404d3c9cf8090b2e714c6bb8d6066c10f22194dd4746999e85ed1e7c69b8f59c17e27a447320b7ea006f39ce87e93a25a384a24f3180c4679800643488f66057ca01bbef068a691cc9da2b5b8ff90f1ea5f0821643e0210659ae313b14c66bce84fa23ea2df8aee62bf12421c5e802f9c31de5915f6c63199dea26dc6abfcdb8b159c619f12421cfac027b4466ebbe83ad1597fa3b039990761305a8873370d861012c019a44a6a2c7ae685d9512399a1885ef45824adf89bcbbe248424e171f8c46944358752998ceeff9e828623f042420809a306818906282f1aef40cbd074498f57b0c727cca1c1104222701a7e61e01fa39299ccc358a667ad5bcfbe23844444fd6237fce3a13093a977c21c2db0e1d1d48490a8a85fd8ba199d6e191664325a2eac27aed123abd7b1cf082131d1f9987df091997e93d1dbe9b8af65c33ca31d21242eea1b2b71bfc9fa8b35995b454310f2ac665f950dfd8d77299a3a7605c913adf091c1a289c624ae2870276e378a0ef7e00e6a82a2d061bcab2fb4466cdf9ee10717f57df4dc1f5a4ca997a4e9e77b6e83a825e2b6e46b7bed36b7388f77e27f88420b5e6f698eb1edfe76da67270bd80fe5c011f8885e0d6192e82d6b32f63cbdaff47017aeb3ee1b818948315bf0c56e89d03e5dda630cb8d9499e9f04adc6203e59e0ed7523ae74dfafc3f73f37457cffb1bef7dc15d21ff9ec877261034ce6669b2e5d2afa2a9e7c9dd15e6c345a78aa087eb15a030ca613bf2a077ccbd51cdbcaa4fffdff47438ca89586901bdec0add6dd0d5293b90e0b3e315e7d0c49b0c87817be72a50efdd39081db1863dd1531d49c625d0f9ac4c4bd359719e6fc39991bf16bedfe423717687bb34987efffaaf5a54f613404987429f74331b1077ea28c5793198d075be8299143603b0fb031c5af63be52bce68001d41ab0dd8d01e6540eb4c68c66b4cfc6388ff5076327bfda59c5fac96835991178f057f64b2c4e0698caa4026c4793397f8277519201a3bffaab7da95e43197c16ed31cdbe2145ca4532c7fac9556a32f652077bd92f1987ea85a02966d89fee1c4631b3d397be8e41aa1846639aa91289cebb366a5493198c07bc5e75fa114da1188b3908cb2e185fb16e6f2e694b612461112753a5dcfd002b97a9c90cc08323ec97b4077ab1bc777b0ffe1c5a239a4c2353a5bcf0116e07689d4c0d1e1c67bfc446274efbf922897c52974694a2465451869f854d996a53a4818d34e6bc60fda4464da6171ef0dc31f12208ff6e63a525c63aa27eb95b93cc19d4050cb45c918dedcd47ca646b85fac15092cd4175a611c994423f1403d64f7a553b0bcfd23b2e60211485d531bf5413b3f0a54e2792499789591e84b94a9966fb0ca5cdf7e3509b61aa540afd500cfcdf4f2a0dc906badbb889dd501429536792d4a82120f22139a69a5d90b1b9e8af67471aafbd3162bb8e22f95f4b657bdb9c34b616d19edda6a60c53a552fcdc6832256022cdcee3665ffad43f832f53a1c2e93adf60eb8898e6954af8ef9a8c8d665af0598dc94214d3ce61110fa64bf168f185e3b34d61cfd5b233453a1066320b1d955b9ad716923271d7354da624d08955fff13ecd05de1ee38bac3235aa72311acb44f40b775d1781c9f462774442530bb7847dba295c697e7b1a914cff1446556e2663a318b76f3698f2ad7c2e167ab926637735d5b05f22532cd18c3f0a1913217d6be801bfe8fe94493f9f7e4c95f28af593b36a32f63ad703d82fb1bec41b7d21796301b6437f8d57c7303c8d629a9cc79d659c36b8ff576d8a4887641feb279fa9c99cc283cbd82fb1f00fe69622d98ee9267832b73fb6b1a7fca287fd6f4c95f283f59353d5e8f02b8c7731a6cdec9b58bf941b4da202b41683bb354d734885aeb72360b92ed333f53de52c5b856d69c1e75b87f7abf54531714e5a95adedcda7c9ac8a613ee5da0f85c2a6ed9dd54e243382be111b1dc8fb7dd14c5bc45fca8531dfab3dc997d5d6812cf4a5706125f06a300d317fd1b3b9bdf94a25356a9994659329b57e28142371fba93bf13b9a9e111bfdf2f8cf3457a8535aea2fac56a31e48d14ea32f3d86a7279c43c56f28bb982ae58dafe3f63f1ac9f4c183f1ec970b2641db230eee0e9ff104b1280b861665fbeb6022ee6edb933095b618e6928fed75db2e4af3b5a94ca6c997bac4259ffd504ed80b14f4a9e8eeee3e2a770662c15586572c2084649e2ad9d36f1ead84c1ecc3829bd93f84900cf90e6ed5572eb115bf07713b89fd4308c99049aeafd8895f5b3ba17b2306b38f08216932d824f66af635a8f8d5d3e4e94cf01198ce74f61321244dd43faae027ea2ba7d5548ec35c7e8f46b30ccf334308894f35fcc3c04fd46c8eabb9d84b17bc233a67bccadf29ec2f42484ca6c03fd447ec953b3e5293b17b96f4d0821771ff21c373cd1042a25309df30f0912b70bf439fb097a7d58adfc7445da251a2c9ec3742484426c337bae023b6e2778f9a8cbd30b656fcee16adc7e3270dcf314308498dfac413b8bf1e3e622b7edfd18adf4172e7632cd08adf53886eec0be7b10f092149580a9fd03dd55aed7b914954fcfeef5ad89f98c4a1045af17bc8248ed7d013655fc33e24848470b5491c14bc58f4814954fcaaaf7c6c2777dfc0adadd47b5ab4dd78e7e97cc1240ea22484108bfac25af8c40e9338719bf5913fea1f6b321b706b2b7eb50a789af14ecda9e79959c9fe2484f858097f509fb80bbee156fc6e704d46cf31e2aff8d5799999b8af2b98cf3e258480f9f005039fb07ba9dd8adf8daec9e86e277bf225b7e25743a125b8ffa8e85ef62d213d9e7be00706feb016f7dd8a5ff593cf5d93515698e08adf8745cf892a44bf74564208e979e8f87f067ef03cfcc1e256fcaeb00b5d93d1cadfa08adf6ed103a29711062d173dc2be26a4c7b100e3bf0a7ef013f883f512b7e2775f90c9286115bf1af64c75dc497771bf64bc43b90921e54d5f8cf7c54ed633d5a643c05ff16bc24c2659c5afaef0c7ce1be94af57cb1e3f8191052b6e8f8dee1041deda2377d061354f11b6a32ca1ce355ee0d35c1977fd0657718af32b85eb4c578157f3c048190f2a106e35ac7f7308cf71f88be814ca6b7d356a74f2e876fccf5af28c864a254fcaa5b8d85c3e98cb296146b75df14c3a3b70929652a1144bc8b71ade37babf12a7bd7186f17f5952671b85150c5ef79e8b14b416fa4157c7f86c1e8feef6b4de29ad97eb7d3dd573789bee4a45c9a93e9e4cf397e66849404d5081274f27614969d86713ce58ce52f22bad1ab917e5bf43be315e469c0f14d93b88e5b4a933178e13693281d9e16d24e4f11f13acce5262792d12b2bea65427f637aeeb567082976ea9006cdc0f487a293b72f23f5391832e6f52477076036671088ec0d7a836426a36845df0bb8af0eb724a49d1ac9dd70c2db706b0bfaf40d36895e31de84d12efc138490c2a443631010e8589d60bc9a178368e52fa25f186f6f5232b62355320840d686354c653206a9cf7c98c5fdc62bccf3a3c72b1c4618753d1c71061cb2ced7f618dae91ccefbd06184669f99c4b5b90921e9d117d3173a9d3144341cd2d330e879a306fada772050d880f9173b8ec3d08adf653027cd626e49b631514c4657f4acf10e29d0dd56f719a79acf4143abc78d7759d0d5ce6b27c0316f828372629890c2d2858ce24d64189b4ca2a82e681cbbcc82c16841de6bc63be2ba2b53933158e13ad1ed78acbbb11707b8e7df11918c0d894806c24935a7d373d7f483dbd6c07959dc4748763885cc40c7e3110408ff12fdca78b52ec792444161e3788133ee75cec65f90178c9a4c4455899677277849d4d7d7e6163cb724c2fad8966dd9b634daf6c578b72c871f44f28e382663b5c879b37da271ce735f106d127d2a1a91623d6ccbb66c5bfc6d6f17fdc319f38be37a463a26a39a2ceac49b9e152d15d5e0b9e158fe8708eb615bb665dbe26c3b166dbb70db89716ff26532aa7ad1db8ec31d144d11558a9661d97723ac876dd9966d8ba7ad8edf3b44ff74c6f61ed1b074bd22139351558be621acb2fc4d740fee6f8bb08e4bd8966dd9b6e06d752c4fc3f8b59c16bd26ea9d894f5435373767ba2b6c33f6b1eb01957a4995cb44b78a8e8abe825d631b93ac43ab05f552b933f19ab7d9966dd9366f6df56a257abea85f8b7e28ba14e37a3d764f3f1f690f5296f62e45d128d11accd3b86c16cd115d8d70ccff3a9dcf39203aa4d7814af11e6ccbb66c9b7e5b1d7fdf129d10fddb9973b1f3ab6b308eb3e60bd9361977be4667a13fecbe90a3a2573159fc23d10da2af891af1fc3311d63f816dd9966d43dbae100dc1b8ba01e36c29c6ddd18031b91fe3b53e177e10b5182f5db4e2773aaa84b5d86e042b7e09299a8adfa3a8f87dd6a9f8cdbe09e4d864c22a7e473ac7530c61c52f2159e71ce65bb472578f0db4c709ea31835b9254fc669dff0a30002ad6ba31ce777f950000000049454e44ae426082");
picDatas.put(
"thumbsup_msg_finish_gn",
"89504e470d0a1a0a0000000d4948445200000119000000580806000000c163836a0000001974455874536f6674776172650041646f626520496d616765526561647971c9653c0000036e69545874584d4c3a636f6d2e61646f62652e786d7000000000003c3f787061636b657420626567696e3d22efbbbf222069643d2257354d304d7043656869487a7265537a4e54637a6b633964223f3e203c783a786d706d65746120786d6c6e733a783d2261646f62653a6e733a6d6574612f2220783a786d70746b3d2241646f626520584d5020436f726520352e362d633131312037392e3135383332352c20323031352f30392f31302d30313a31303a32302020202020202020223e203c7264663a52444620786d6c6e733a7264663d22687474703a2f2f7777772e77332e6f72672f313939392f30322f32322d7264662d73796e7461782d6e7323223e203c7264663a4465736372697074696f6e207264663a61626f75743d222220786d6c6e733a786d704d4d3d22687474703a2f2f6e732e61646f62652e636f6d2f7861702f312e302f6d6d2f2220786d6c6e733a73745265663d22687474703a2f2f6e732e61646f62652e636f6d2f7861702f312e302f73547970652f5265736f75726365526566232220786d6c6e733a786d703d22687474703a2f2f6e732e61646f62652e636f6d2f7861702f312e302f2220786d704d4d3a4f726967696e616c446f63756d656e7449443d22786d702e6469643a32316536363638392d383066612d393734622d613536362d3962613730633837353462372220786d704d4d3a446f63756d656e7449443d22786d702e6469643a44394146373333364532364131314538383038444138453635363642304545302220786d704d4d3a496e7374616e636549443d22786d702e6969643a44394146373333354532364131314538383038444138453635363642304545302220786d703a43726561746f72546f6f6c3d2241646f62652050686f746f73686f702043432032303135202857696e646f777329223e203c786d704d4d3a4465726976656446726f6d2073745265663a696e7374616e636549443d22786d702e6969643a4245384136313635443543383131453842333535454331433438433545424645222073745265663a646f63756d656e7449443d22786d702e6469643a4245384136313636443543383131453842333535454331433438433545424645222f3e203c2f7264663a4465736372697074696f6e3e203c2f7264663a5244463e203c2f783a786d706d6574613e203c3f787061636b657420656e643d2272223f3ee78970f6000010c44944415478daec9d7f8c14e519c75f38a88d3de1f01752352cb445102dab92566dd1c5a4d6a456ae89880ac623add41fb55ea3a6d8465db055aa359eadbfc0b41c11a88a6defd47fb4adb784566bfcc18255d05438aa282ae81d224d0bdef67932dfb7f732ccecceeeccde1e77df6ff2bddd997d6f76f6dd793ffbbcef3cf3ce9042a160fa50a3c4a78ba78a4f111f213e5c7c98f810f13043515412da2bfe58bc43fc8ef875f11be20de267c51ff5d58e0ca932648688a789cf1367c4278987f2fba7a89aaa47bc56dc217e42bc465c3510540b32278b1bc573c4e37caf7d04926e00595f07697780bc7b790c50542c0d43cf407b089f171f279e209e849ec4285ff9cde2e5e2a578deaf213359fc73f1b79cae4f01a47c5c9c03417b781c50544d34143d8ae9e26fa3a731c4e9623d2c5e247eb5bf41e668f12fc51738dda1cd20e3f26ad091a2a844340e3d8eb94eaf43838047c5d78bdfae3564345ab9469c15d763ddab20e1c3ecfa50d401d5c5ba503c1f3d12d52eb4edbbe3b4e538901907da4dc5f256f17558c7ee10451db8dd29ed91dc213e06eb5ec4bacd956eb0125d69bcb195a920dc9de289885e08188a3a70d583763c09ed7a2fda795e3cb3af2299c5e27978be19847b91df0d450d484d45efc48ed7dc22bea95a914c9d0f30ab8c374a4dc050d4c095b6ef34dabbea4670a02e69c8d42184b280b919114c37bf038a1af0da89f66e239879e04124d044ed2edd27be42fca9f1c66396b0de296a506a1e78a080b95f7c9529912d1c2592b90d80515d4dc050d4a0d61270a0002edc1a3792b948bc12cf6f305efe0b4551d47c0420aad90e27ca82cc69e23f8b0f16ff4e7c31eb95a228472bc085ddc69b55616339903948fc92f132ff366203bb59a71445393a189cd01cb997c5a78af7f80b858dc93403309a88338780a1282a40bbd15552b0e8cc0bd7448d648e46f4a2d72269c6df75ac4b8aa28ae80e706217a29aada520a3e7bf67a1e044fc2345515498ea11986880f288f12eb40ced2ee9f50af6fa846b09188aa22268177861c08fc9c52299878c3706a3b3d69d6078b16335a5a9da0dceb25e80d65583fdc8e031c7af848a210d58d603302bc091fd20a31740e974983aafc425c69b6c8aaa9eb4519fe92c4faf5143b7fbb15adc2a6eab11eca8035fb3c10d3d61a4537e6ef24346136b34c146afac9e6038e154b59535de356056a36ad0b85366df3942d621b2a905649ae0b8a0d5fd6f466448f5ad3440d139bbc71b2f71f706bbd2863a97e2f91202a626aa45c3ce3acfbbd1c8bb4ac030ae16f8ded705de99bee82e4e57b4b1c22e68adbaad0341ca8d0711b0e8b1f453718f85ccb9e231c61b8359c6ba1a14ca383f2caa915857eb0840bb6d3a5635c5815fd83ef9cb291cc602589582b156ddd68122ed72ebcd048ec20f468785cc45ce17fc2eeb6950a82560dd5d88029a9d5ff35c89ee960baa1f4580546791a82aeb00b0c3892c32454019542e9370f44545d7367044613dc3858c9da7f771d6d1a050d6170134e1176824a061bb1b9d804c18689a1dc86c0901572d94c741dee1acfb4e4837280db8968220155deda8ffb375412173a4f88b78f129d64f22e31b5d117ed15301bfcaa5ba3761ef57ee7885fb2baf8069c3f6dbd0dd98e24406f988fbd4da8fbe8bae00307645ec061132f1f5341e35efee0885cca958f181f1f263a8ca14373cef8801b5a86af035b465008bfdf54fe3f529886a7288565a43b635a39f42c638ddff5203c92e28b7f0304e441bc013bdd7fd690a9913f1c273ac9b012d0b9891585e0780343bdd9c2e343a17344b1d083514699ca980e8cc9419dd5553a922f5c2282679294fce53be28642662e52bac97589a5e66f926b3efa0e9f42aee5b83030e5537c062d7a5b13f2e683a1d202d2d11158c8d1089693fbdb1423864cb04473965d3ce73e6d624a7570099e31532f656071b592fb1942bb37c26e6ffc7014c0650b1eb2e45030b8a680ce09031f172582a6dc0636374457311f639c548a62a7acdd6af26e11d8505deaf7ae0298dc6ed074c1edda476a7ec5d3ef0e501a24c000035a16e48042f48e03374238a0af2ba1850b7001ecb48a62ab2c01ead91cca158d8c67a19706af235227fba7d13966d9936fcb27739cbb556d43c99b048e6e67e104d0e46bd87c7433592a9c7c287ac97012785cadd783ed7ec7f06a82b609c245361b7240b67fad1e777f362ce2c0199753c5c1295e549bd4632c3b1c0b963062e685a8a8c37e4d1ad490112958c4bb8d71c45cd47e9ab28c855caf7f91a19c5544d9627c387392bf7b05ecaeadf6712d886ab6c027de0d690d752a6f7ec51670048724eb9544034908fd1b06b2d8d50a638756eeb28edeb4ab6f1b04e54ffe7c930d645c58048fada98b8db5b5d043271f677758dbb402913ef1476ce814ca35347cd4e996e4632d513214325ada4a74988730adb42c6cea2af19ca0d015da5567e6dd5d350564145d28352f38b8654e0d54e187f5285dbf07b94ef9739cefedeedfb856f8e390e526bb5e17318072efa99463aeb5a78481332fd4d41e31a51bb5976805443f8b526fe588c8d1ef209ec6fc6ec7bef9c46d33fe697090362d42c693752c9fac0d96e988447c80c10350484e55b8a8c05a46abc7f0b06d038458baffb35d2071daa8f20339cd551f503dd3d9ba1dda5744043ce207ab05745f7651770acf3eb1eb5f1657cd0ec0f4afbea4e2395a0191f971966f9564bc35dc8d8534df5ac97aaa9c9ec7b3164d884dd0aa20eb3ef540b4982a6c1049f29d2fd9be180a2a9cc06ed36e662ef5d4d69e467efb4b0d6ec9f6418044d4631d593e5c91e858cbdcff5a1ac97aa0166a9efd73e0830f6a077334f93064d0e106b731a7dcad79d680ad9b786229fcfaa2d228ce2c2a41175e5ef06cdf07585fc915ab16e1495ac2c4f3ed153d83bf1c58c16bfc9baa92a60bad140c24ef376a131b63a918f054d266668df627af3456620eac8621f6dc32c360e6333838d53a6d9d9a65ddf8af7cae379cef96c9542258bcf9f2e02110bf03cdeb3cdf7d9832e2b98817d6ce2a19ab846e371a729140aeb0b9ee6e83d98e8c4dc54d8575de27419ffdf1af3fffd4e89db0ae1cac5fc7c5967fbbaafcd656e2f8dff6911e70ba5d5e92b978bb89ff9807a68e5f19ab82f46ddaed785bf62e167ac98c4dc1a7060a72ad84e3e61d0a81bb11dbfca814273c0e74b87802b55619d0541a505fb6fb79929019930d03704d46d0eeb79fc26e35b50af7fd3850e2cb4b362623b1570f0e64b1cbc6934964644033622c885c02009d034844435ad25f63585fd0afb7ce9103036478c640a01db6e2e02aa6290690ad85e93af0e82f6b591c771226e479d76e8c2f358789f15130b2ed900287439e0684143c8e157398e92004d5854930fd8762a24d208fbf5cf06946d8b1029743a114b9408280c322d2500530c34765b691ed7b1fc1eeaf2795dd8ee54ee24564e45ce149251a703220ba7a6101824059aa0e8ab050db02924e289129d84012c55625f2a1d17b25db3ce9008ad5854978fd97da4f7f524a71e3f3078f2261eaf610555ec5c0488e47d00c9c00d11a38ea0ed25b1ef0d4ea4d25ae4fda274a9fc5da0ae2a7647b201914cc6079ae6323f7f58d44347f70f5dae18e70b523dc30a4a249ae97260d29860e8dde46cbf1a0dc1bfcd161f5c2a19bcb6a0e92a24df05c98674971ab05c6e1d35123089f82f2e578688ff6b8c791539083de2a30de7fb8d931793af72aa7a9393d9da579f2967e25d449876726d9294e6cfd869206a3def0de5496f4cf0b6b80e99d72728643e4482d3fb28305ffc0bd615455115e8c7e2450854f40e923bf5b202858c3efe0185e6194e66455154f91a067e18f044a3990f152ef6d605ebc57bc5e3c5b3585f144595a959e08772c45e83f79e426613168e153f82e73718ce35435154740d05370c38722c9e77ea0bf6f6b4278a6f33dee0ef64f14cd61b4551113513dce80147be8cf51b1432af60e134e39d655a85e53b0de798a128aab49413bfc4f355e0c8a9585eaf67977404f87dac38de78533f6c74fef17ad621455145743b38a137749b243e44fc1a5e1bad91cc071ad260c5d9e2ada677de109d54fa64d621455121d23b6ed889d9171a2f47e61bb6aba4018c1ddc7d1a8f760a46bd2dc6cbc69ba77385f860d62545513e29175682139a78d7e2e3c89ff48f854c3b1e75f6304dc8d3797f671b6f6ace89e207599f1445f9f420f8a09cb818dc38caf4ce42d8ee424653b2b761d94efba8e33297e1b96e603eeb94a228683eb860c0097b965af951079eac7621a3a79dec2d23dc8c5f0d8516e1f9ade22b58b71435e875397860c0879578ee66fc2a4f3e7521a35a6282337e7f22bedf7877ecfbb5b3118aa2069fb4fddf031e3c003e58b919bf4bec4a17329af91b94f15b105f2d7e0c61d062f14dac6b8a1a74ba11edbf0e3cf801f86059e266fc6e0a828c2a2ce357c39e0b1d3ae929ee47c52358ef1435e03502ed7da1d3ebb9d07687207fc6af09834cb18c5fdde0f79d37d28deafc2053f91d50d48095b6efb54ed091133fe3034c50c66f286454d71a2f734f27afba39e0755d7781f13283c7899f335ec61f2f41a0a881a37ab46b6ddfe3d1de2f117f053d99839cb23a7c720cb8719d7f4341908992f1abb44a83703aa2ac29c59add37cbf0ea6d8a3a90351441c46b68d7dabe5f345e66ef72e39da23ecef45e6e1494f1bb8ff4daa5a037d20cbebf03307afefb14d37bcf6c3fedf4f4d559e2cf395d2eed93e9e0cf5e7e67147540681882041dbc9d8c75bb008ebb9cb6fc5944377aeff1af8b7f6fbc843c0d38be6abc84bc489031f8c7974c6feaf0ec90723a45c45380cb594e24b3d978f7817ec8c49b1f96a2a8ea29856ed05c0c7fa874f0f631747dde0a69f33ac9dd16c0663702918d416f500c322acde85b81e74ab84521e514247340c2f3f06813faf40dd6881f37de80d13a7c088aa26ad31d9a828040dbea34e3e5bc18442bcf8b7f65bcb349c5f432ba4a0601c8cab082a52063d0f5990f585c65bcc43cbff47a857711469d0e22ce052153beb23b504ec770de80df4568f689f10698288aaa5c23307ca1c31963c413609d8641e78d3acc57be1381423bc65f6c3b0e9366fcde0738692fe69c623b130532baa17b8d7749819eb6bad238d97c8e34b4bac378b7d058e6fcef3410f32c109403c314555bf5a047f10c7a186b4c6f525d503b76350f80d184bc278d77c5754f5cc8186cf061f1f958d6d3d80b03e8f94f4424e99088e4309054fb743a77cd48d0b61ee465721f4525a39de819687bdc8600e1dfe2df182fd76547912828ac1ddfe8b47b1db3f127e405ab8cbbc2d589173b77ec7b543cc257e61cbcb628c2f658966559f6c0283b02eddd6a317810891d95dc827281f3669bc4539dd73e235e23fe583cb1c47658966559b6ff973ddfded31a5a582e332abdd7ed4c7137de748ff876713d5e9b80f57f8cb01d96655996ed9f65d328db83c76eb47bd35790518f13bfe010ee2df12cf150f17d58f7cd08db61599665d9fe5356dbef05e27f396d7b83787ca5ac880319f530f1f508abacfe21be1ccf5f8ab08dc359966559b6e665b52dcf46fbb5da257e527c501c4ed465b3d9b8a7c29ec53976bda0526fa9325a7cae78bbf80b3835b6bac836345b506f957b19fee70596655996edb3b27ab7129d2feab7e2ef8a8f44bb5e85d3d30f443a8394d0d9a5289e2c5e8e711a57cf8aaf159f8470ccff7f3a9eb345bc55ef0355e23d58966559b6f2b2dafebe26fe48fc1f67ccc58eaf2e473b4e8c0b4943c61dafd151e8770afb6bbbf8090c167f4f7c86f84be246bc7e4f84ed4f63599665d9d0b24bc463d0aece403bbb1ded6e7b409bdc8cf63aae1a3c889a8c57a934e3f75264096bb2dd4466fc5254bfc9f8dd8e8cdf7b9d8cdfe4215065c88465fc4e72aea718c38c5f8a4a5c7b31dea299bb7a6da0bd4e50af197cae48c66fe2fa9f0003006bc64e3d74ce36430000000049454e44ae426082");
picDatas.put(
"thumbsup_msg_wait",
"89504e470d0a1a0a0000000d4948445200000119000000580806000000c163836a0000001974455874536f6674776172650041646f626520496d616765526561647971c9653c0000031469545874584d4c3a636f6d2e61646f62652e786d7000000000003c3f787061636b657420626567696e3d22efbbbf222069643d2257354d304d7043656869487a7265537a4e54637a6b633964223f3e203c783a786d706d65746120786d6c6e733a783d2261646f62653a6e733a6d6574612f2220783a786d70746b3d2241646f626520584d5020436f726520352e362d633131312037392e3135383332352c20323031352f30392f31302d30313a31303a32302020202020202020223e203c7264663a52444620786d6c6e733a7264663d22687474703a2f2f7777772e77332e6f72672f313939392f30322f32322d7264662d73796e7461782d6e7323223e203c7264663a4465736372697074696f6e207264663a61626f75743d222220786d6c6e733a786d704d4d3d22687474703a2f2f6e732e61646f62652e636f6d2f7861702f312e302f6d6d2f2220786d6c6e733a73745265663d22687474703a2f2f6e732e61646f62652e636f6d2f7861702f312e302f73547970652f5265736f75726365526566232220786d6c6e733a786d703d22687474703a2f2f6e732e61646f62652e636f6d2f7861702f312e302f2220786d704d4d3a446f63756d656e7449443d22786d702e6469643a46314142384646344443323831314538393043434539314144453944373836432220786d704d4d3a496e7374616e636549443d22786d702e6969643a46314142384646334443323831314538393043434539314144453944373836432220786d703a43726561746f72546f6f6c3d2241646f62652050686f746f73686f7020434320323031352057696e646f7773223e203c786d704d4d3a4465726976656446726f6d2073745265663a696e7374616e636549443d223646413845363539313934363932383235464431313932343631313832394238222073745265663a646f63756d656e7449443d223646413845363539313934363932383235464431313932343631313832394238222f3e203c2f7264663a4465736372697074696f6e3e203c2f7264663a5244463e203c2f783a786d706d6574613e203c3f787061636b657420656e643d2272223f3e67101b10000011824944415478daec9d099454c515868b19108511a2b8e192801a041105c17dd7881a1350a3a2a2c725821af198c40de351911c1551e30a02598c110c8a89bb06238a7a82c9715f105c10645154403689ac93fbe7fde5d4bce99e79bdbc9e1ef8bf73eee97eaf6b5ef7d4ebfafbdeaa5b55cdaaabab5d09d9cc6c7fb35e663dcdb634dbc2ac9dd9a666cd9d10a218ac315b66b6d0ec33b30fcc3e349b6636c5eceb527d9066298b4c33b383ccfa981d6ad6c3ac42f75f8846659dd99b662f983d61f6b2596a429096c8ec69769cd9e9661d63af7d4d259d4665fd804abb90cabb46df01210aa23923034408db9aed62d6c9ac0b2389cd62e5679a8d35bb97cfcb5a64ba9a5d6f766c10fa5453291f379b4c055da7ef81108d4205238ac3cc7eca48a35910628d371b6636b5dc44663bb35bcc4e0ec2a19954c6b169a8a310a2287464c471761075c00978c8ec32b3b98d2d32f0562e361b6256c57353a984e315fa08d1a442ac53cc06332201cbd9b6ef28a42d1722321da976bd783ccfec529e53382444d30da71091dc6cb63dcfbdc67333f3bd603efcc2457d2bbda870b79a75a6f7228111a2e9b28eedb80bdbf51ab6f3b7cc4e2a952733da6c209fcfa4c2bda67b23c47a492f4627bebfe6b766d7a4e5c954c60466828b7aa9253042acbfa07d77677b075753072a8b2d329574a1bcc05c4b0f6689ee8110eb3d4bd9debd0733907a90486892864b23cd2e305beba2fe9831aa7721364806520f2030f7985de81ac8164e3257e8460a0cb8480253345a98ed4c4346e66e2ecace6c6bd69a65fe6bb6d86cbe8b5203a69b7d6c3683af09516ac6506046501710cd5c59882773aad9037c8e0b0d531d170c7aed7b9b1de9a249a2dbe4f8f7987ef186d924b3675d34ca2744a9194c0704f40f74222791d9cfec39b356667f353b4df55a107b9b0d30ebeba2d9e7c56091d9441775c4fdcb29f951949671d48515fcc19c9e8bc8b4347bdd45997fd3798115aad3bcd8d545e9d9a7b25ed3007d658ff097e50d55b92811ada8139df9bddbd76c755291b982a1d11afee1ebaacfbc40a7d8e566dfafa7cc1cb3f778939077d48fa194a377729f8be686215d00fd36c8576896e55a5f9add697693bc1a5122b0e2c2bf5dd4c7881fd35b9288cc76f45e301709197f97aa1e73060b71dde6a289679998eda23e15e41ebce2a239225e1450e7bfe6f33fbb68e21aa8e42f0792a39079897e9d9db25cff490adc6cdd0a51026ea64e2ca757332f7c31539eccad1418141ca2facb2b3c7a268bc0cca0da1f62760ecb2d8e791d9b04cf370eee114222acb7838586904670a0d920b37733bccf4f78edfd743b4409b88e7ae11d13579fc8747135f3132ea13289e42033f231573369d4b3ca4533590fa33b39ab9e6b7ceba2feaf157c9e0d0c6b8fa04733940214173b7c9623745b44ca2ca75e38ea47d7fac2a5fbf90b3c8df1bf263b26a7331b75a7d8f999f4389e4e789df60cb7aae9e5245dcf038b0fdd13bfc1c6e76627306e16222de0b0bcc3efdfb8d0930f45061d8a580e13097a67b868b129918cad28223d63e711da9c67f651893ec70ef4988e8f9d4702df51669fe8568914e94fdd40f8bf8bffbe85e1d2400a0c7e79c7abbe1283919edb3308cc93741d3f2ae167c1481586caef8b9d47563132355bea7689147990c2021d1910ba38fef14c3e1fe334fc990b17b06187bce4a251a185797a45c8ae1eccb0295756baa863f8d1d879f4cdfc46b74ba40874e3f77c7e96d7171f2ef5617f02fa60b6671c2f1a06fd30188ade36169afc384f0f06bf0077999dcf633cff958b469672656bb3a7621e163ae87e64f61fdd3a91129826338f027338ba0cbc27e37f895f94c0e4c4e098c020db715001211226471e121c63987ad33caff50543e070398e2a7a4995ba752225e6534740df305cf243ae8fab8e12030fa15fec1ca6c04f2ce09acd62a16aa1612bb2886f889dc3361847eaf68914798c8fbdbdc8a00f60679e9ca8fa490cfa3d360e8e9168774b81d7ac76b5d7e628c67e358891c399dab8e717b9ec531384289467f988bcbb2df185db9727be72517e8c68180ccf1d173b871c95b965f859bfa687157a4587311413220da6514fc07e10996e3c784575939863cc360f8e212e13caf8f32225e183e07813fe0f42a485d7936e1099ce3c7857f592888d5cdd547dacbb53ce9311970771b2e78898500a514cbc9eec0a91f15b1d4c57bd2402fd57fb04c7d5ae69242f62e1b1702ed41e0cfb844883f7f9d80122e3977fd47ed5c9c0f20ae1ca76c8b26d0af3823e8a854c2d2532224566f171eb8ac0659eaf7a4944bc614e754d63b63a6682bf1a3bb7a76ea748892ff8b83944a68a078b542f89e8163bc6f0f0da26f0b911d6bdd380600a512cbc9e5441645af0406bc724a37dec784e13faec9fbadab9375be8768a94f07ad2229c85bd5af59288b6b1e3b94de8b3cf8dfd98b4d6ed1429f19d9e34575de44c552c04c11a2ebbbb68681b59b4e8405f50269f1519c958210f739556f179e8c968e907913a1299dc091b29440533a5d7b99a347d4c4abcb748ef852cdd42fa7b30a37e1285119fbbc26972a490c8943df1fda72a630db7a288efb599591b5777fddea440f85ad5739f57e9768ab4a95015e4ccd2d831f6a45ec2f34b5d617d5bcd628280d11facb077629ea10d3cac85fc5c4b5cddfdb3bfd1ed141299f223bedece5f5cb488f7a12e9a78f85401d746a39f19bb3fd80101f3a21ee5fbe4023a7a8fe1e7c2dffe2ef6fa02dd4e51ca70a985d3085312de8f1d2399b158f3bee0695cc97bd13bf6dad16607983d6436dc458bbe370496e27c3b383e2bf6ba16161769d122fca5f4c252a57a49447c8e57cf22d71d040b9bb39deba26ce210ac92f773b3292e5aafb74d0ed7c5e8d7c1b173da7e58a4856f13ab21322b825f64d13058c337cc8efe81abbb5341a140f8ffc830e7ca0c215a3bb3ebcdaeca21e4c544d85d63efa149b1222dbc9e7c832fa8efc8dc5af59258645e0b8e31b2d42fa5f7c2c23fc35cb420f328863f217bb9e42384e83c6e151c4f95c88814f17ab21422b398073baa5e12817e93c9b173d8386dab9443346cbd827e9aa7f919b0e21dfa67920c432329ef84d8b9175ccdea6542149b0e7c5c127a329d552f8979dad51ecaee404f216d5ea2581ceba26d57c624fc3bfccd6ec1f1b72ef9b6b942e443173e2e0b3b7ebba95e1283119b6782e30a7a1a5b95e0bd57d20bc11a3649f62ac7fc242c7abe51700efb2e3dafdb285264773eaeaa08e2f4fd542f3931c2d55e9c7b370a4db9818dcf0f889dbb3ba14009912f7e838256d841120959ed7802a30fdab12019c8ce7dd8d5eeebc00c67f4cf4c2923977572ccc39ac4706ba56ea148f17be7f3c9165450607c52566fd54f6230e170a88b3a603dc80dc028d03665f0f9fc670905069dc4d74b6044caf8cd03a12b5bf81c0bbff0525fd54f4ea06f26bea11bfab646badac3c5a506f7f50e5737f96e94ab3b322644b1e91bea8aeff8f50b311d5226bfc24d899bcdfe113b77bc8bfa6c1a63bd16dc534c3b3827761ed9bdd7bae2ec4a294436b67135fbb92323fdff19bfe847404ff07c7e41cf543de50444fa3c57772ed1592eda2a65db127e162c0d31daec92d8f9cff87916eb768994817e54524fa02bcb212a8b282e7f67212cbaa475667263361b713cfd1f5bd962a986bd73b8d6f75cb4d8142c97a91e08d31e71d19ca710e4f30c307b4fb749a44c73ea87a39e406c16415cfcd60558c91e43b2c8fceda7faca196ccb7986ab9b45dbc36ca2d960976ce16ecc559a4abbd1d5acb8970db8a4e79bfd3370533dcb28304abc13a5a01ff5033ae267ff7f0191f1234b58abf6c1e08baeb5667207c3c3e8f49a9ec13b816020810fb3a8db36201adedad62332982a709ad91366f7b8ba73cfe05d9de2a2a90742a44d0575c3514776e0f359154183e8c6868024adae6627a9def2f668b054c3b3195eeb65f607b397cd6e70d156b1f151a870f5ba6f5deda4b94d5c94837015af31d6d51d4102c806ee230f46949093a81beba8233ee3771a92f1f0657c8c6e3e722ac6d3ed99e7a2f94cda8f293f5a520c06b9a8433613df52e45fa37b39839ececff83ac2acbbf8ab801f81bd7823b30d8f63653d2c1131c4d5cedf11224d90938524deede9c5c083fe827ad21722837d9dbf646164fc2ee5171f7f881c90cb54870581f4eacb5d34ac9d04ec4e5099e17943c073bac9694e92283dc3a913cbe9696371359ff1fbffbdb0bf723553097ad383b98ec7173bed975c28085d4e76512a3f469a1ada79a032cbf34c60c1b149f43cfb4a60442380818d5ff23932e0b1aeb4cff885ae7c094f0607b7535030bb170b24b560e3d8935e4d4f57772b10911fe843c17abd87b27e734dd8f33df758f6017d2ecfa94a452381b01d499ee856c19ef0fbb8286f6c1275e44ee88a1799c3f82b884e9bed5c9448d39917c0851e30ebaf3a2d2ac881e944f7b2079f23746d1d080fe61aa19f059358d15ff3067f1d3e0c425c211a8b712e1ae15c4147040ec936f466e0851f015df12253c13009050633b677bcc0383ec7f0d430d5ab10823a71239ff7a72302aea04ec0514147f05a9f0b030fe63e3e0f337e1f08840543ae17a86e85d8e0399f7ae0a80f5e60c28c5fe8c95aefc178c6b8cc19bfd87a03c95e7edfe781aa63213658d0feefa61e8ca23e78c28cdfef96860d450699bf99327e114f5de4a2059a10676102de35aa6b213638ae66fbafa41e0c7235b3fae319bf9f641219e7b267fcc2ed392550270c71235dbd8dea5d88f59e366cef4383a8e7141f0e9178c6afcb263298943781cf6f75b57746c405cf0bde08177dcb45a9f24288f513b4ef3703a763b28b46a24381f189bb8efa31b53e9101588b04997b18cabe36c3eb3887e4326406635742ccd519eeb4cdad10eb13556cd768df3bb2bd639581bd19c984f95de83ed99eba7169fc4299442649c62fd4aa3b150e3dca482946fe463fa7d9db4234652ae844bccf768df68db975c8e5c2845c2c4ab58bab996e9429e3b7163e4f264ed28c5fa81d86af90ddd73a08b91093a1f3678dee99104d82e67412d079db95e79653386e0bdaf2c6f46eb007fc81667f7375337e13898c73c9337e313b7822c5e5f0c093996976afd9fd66b3740f85284b3a300c3a9bdd1f009db70f33f49993a5cd6391bb4f293661c6afcb456440d28c5f08c9e954c23e7cf4097d7803ac7df2b88b3a8cde76da584c88c60c87f6a04380b67a90ab59180dde0a7617c59ca386163b7b83a19273b5337e731619c7d06730c5e2421725e6c5c17484cfe946ed4f453c9b0ad921567621cbf939381ff26fe19a619ece527d0f84288836ecbe4077467b17cd8bf3f3e4b0536cbb58f95974141e63ff8b6fc7d940c6ef488a13a298a3ebfb3049440617c2f61e985280612becab9c69a377b856d81ee42c573345a11995b20f95730fa78e61211a9b758c289e6784f1b2ab49aacbd48e43065260909087a54bfa361499241119c70b62c5bc13798c61eca119d4f3637a24ddb37824eda8a488e9b0764d5baa6d159557c97d421487a58c0cd01ee7d341c0d2ae58397132238a6c5e50b6767c75d0eed167134fc8cb0c4426a1559a8daeaee121b336b13247f3b56109aea7b22aabb24da36c1bb677cf68ea4122edc84564bc5d17bcd92766bd82d736327bd96c9959e706aea3b22aabb2e55ff644b319419b1f9aab66e42332b093cc96f04d579b0d37abe26b9d78fe9104d751599555d9f22cdb9d65d7f17109dbbd2b95c8c03a9abd1a28dc1cb37e6615662379eea804d751599555d9f2298bf67bb2d9eca06d4f33db315fad28446460cdcd2ea35be579cfec7c3e7f3dc135b650599555d9462f8bb6dc9fedd7b3dcec49b39685e844e59021430a1d0a9bc231764ca8c4962ad8c9109b9b615dda9d3834f6623dd740b620f66819c0bf7955655556654b5616bb9560bda83fb968cfafadd8ae2770787a54a211a4228d2e25b1ae6663d94f1332c5ec12b31e74c7e27f87fe9c4fcde6611fa806de4365555665f32f8bf67780d9d7662b833e17dfbf3a96edb868ba506c9109fb6bd00bfd59755d16983dc1cee273cd0e36fba1d9717cfdee04d73f4865555665b3961d63d69eedea60b6b3e16c770b32b4c9996caf1dd3d083a4c978f9828cdf3399258c64bbcecaf815a26c327e1730e3774490f15b7c11485964b265fc7609e653b457c6af1045670dfb5b90b98bb9817e9e20e60cbe524fc66fd1f99f00030032064e779669c5300000000049454e44ae426082");
// picDatas.put(
// "thumbsup_close",
// "iVBORw0KGgoAAAANSUhEUgAAACAAAAAfCAYAAACGVs+MAAAABHNCSVQICAgIfAhkiAAAAo5JREFUSInFl79rE2EYxz9vQkKi3lXqUGjBlDYGOggtFcRJCDgUhBQphEADKZSCk+Lmdv+ARXQTnDp0cWqlIEihP4IZFKUdCqVSghpMwdD0SoOXK+dgUy7JJb17U+sz3T3vEz4fjvf95k5wUhoEu1V1BsuaAO4AQc63DOADQrwpHRy80v7eIwBmw+G+QCDw1rKs4XOGOpYQ4ku1Wr3/pFL5ITQIdivKR+DmRcBttVnS9Vv+B6r6EMhcMBygJxwK7fnHgsFnwPVatzce58bUFJf7+ihtbHRMiU5O0j8xgRACfXe3cVkVLxTlNycbTo1GubewgPD7Afg6P89nTZOGj2gag6kUANbxMe/Hxylvb9tHDB+23d4Vi53CAQZTKUYkBexwAOH3o0ajjWNBn/2umM1yVCjUTchINMIBjgoFitls02ydgFEus5rJUCkWpSWc4JVikdVMBqNcbi8AcJjPs5JOS0m0gq+k0xzm846/aRKQlZCBtxTwKiELbyvgVqITOIB4oSjWWUNXIhHuzs0R7ump6x/s7DQdLS9wOOMJ1KrVk+gU7lqgnUQncE8CNYm9XM5xbS+X8wz3LDCiaUQSCce1SCIhFduuBZx2e2PJxLYrgVZHbX16uqPYdiXQ7pz/XFuTjm1XAm5CppP/jrYCXhKuEwlHAZl4lZVoEhhIJqWzvZ3EQDLZUsCwN7qH6z8NvCZcK4lro6OO4z7gk73zfWnp9PqoUJCK15qE/fXu2+Ki0+imeKmqjyzLem7vdsViXB0aorC8TFXXPcHtFVAUeuNx9re2Gt+GARBCPP7vX0Y+DQzTNMeAzYuEm6Y5poHhB3hnmvptw3h9KRT6BYSB/n8EXhdCzJZ0feapae4D/AHqo5v2YwYmpQAAAABJRU5ErkJggg==");
// picDatas.put("thumbsup_msg_finish", "");
}
}
/** 判断是否含有指定名称的图像 */
public static boolean Contains(String picName)
{
InitPics();
if (picDatas.containsKey(picName))
return true;
else return false;
}
// 从数据创建Drawable
@SuppressWarnings("deprecation")
public static Drawable getDrawable(String picName)
{
InitPics();
if (picDatas.containsKey(picName))
{
String data = picDatas.get(picName); // 获取数据
Bitmap bitmap = ToBitmap(data);
BitmapDrawable pic = new BitmapDrawable(bitmap);
return pic;
}
else return null;
}
private static Bitmap ToBitmap(String picData)
{
byte[] bytes = toBytes(picData);
Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
return bitmap;
}
/** 每两个字符还原为一个字节 */
private static byte[] toBytes(String Hex)
{
byte[] B = new byte[Hex.length() / 2];
for (int i = 0; i + 1 < Hex.length(); i += 2)
{
String hexStr = Hex.substring(i, i + 2);
B[(i / 2)] = toByte(hexStr);
}
return B;
}
private static byte toByte(String Hex)
{
int N = ToInt(Hex.charAt(0)) * 16 + ToInt(Hex.charAt(1));
return (byte) N;
}
private static int ToInt(char c)
{
if ('0' <= c && c <= '9')
return (int) (c - '0');
else if ('a' <= c && c <= 'z')
return (int) (c - 'a' + 10);
else return -1;
}
// ------------------
// "thumbsup_close",
// "iVBORw0KGgoAAAANSUhEUgAAACAAAAAfCAYAAACGVs+MAAAABHNCSVQICAgIfAhkiAAAAo5JREFUSInFl79rE2EYxz9vQkKi3lXqUGjBlDYGOggtFcRJCDgUhBQphEADKZSCk+Lmdv+ARXQTnDp0cWqlIEihP4IZFKUdCqVSghpMwdD0SoOXK+dgUy7JJb17U+sz3T3vEz4fjvf95k5wUhoEu1V1BsuaAO4AQc63DOADQrwpHRy80v7eIwBmw+G+QCDw1rKs4XOGOpYQ4ku1Wr3/pFL5ITQIdivKR+DmRcBttVnS9Vv+B6r6EMhcMBygJxwK7fnHgsFnwPVatzce58bUFJf7+ihtbHRMiU5O0j8xgRACfXe3cVkVLxTlNycbTo1GubewgPD7Afg6P89nTZOGj2gag6kUANbxMe/Hxylvb9tHDB+23d4Vi53CAQZTKUYkBexwAOH3o0ajjWNBn/2umM1yVCjUTchINMIBjgoFitls02ydgFEus5rJUCkWpSWc4JVikdVMBqNcbi8AcJjPs5JOS0m0gq+k0xzm846/aRKQlZCBtxTwKiELbyvgVqITOIB4oSjWWUNXIhHuzs0R7ump6x/s7DQdLS9wOOMJ1KrVk+gU7lqgnUQncE8CNYm9XM5xbS+X8wz3LDCiaUQSCce1SCIhFduuBZx2e2PJxLYrgVZHbX16uqPYdiXQ7pz/XFuTjm1XAm5CppP/jrYCXhKuEwlHAZl4lZVoEhhIJqWzvZ3EQDLZUsCwN7qH6z8NvCZcK4lro6OO4z7gk73zfWnp9PqoUJCK15qE/fXu2+Ki0+imeKmqjyzLem7vdsViXB0aorC8TFXXPcHtFVAUeuNx9re2Gt+GARBCPP7vX0Y+DQzTNMeAzYuEm6Y5poHhB3hnmvptw3h9KRT6BYSB/n8EXhdCzJZ0feapae4D/AHqo5v2YwYmpQAAAABJRU5ErkJggg==");
// /** 图片转string */
// public static String ToString(Bitmap bitmap)
// {
// ByteArrayOutputStream outStream = new ByteArrayOutputStream(); // outputstream
// bitmap.compress(CompressFormat.PNG, 100, outStream); // 保存图像到输出流中
// byte[] bytes = outStream.toByteArray(); // 转为byte数组
// return Base64.encodeToString(bytes, Base64.DEFAULT); // Base64编码数组
// }
//
// /** string数据转bitmap */
// public static Bitmap ToBitmap(String bitmapData)
// {
// Bitmap bitmap = null;
// try
// {
// // out = new FileOutputStream("/sdcard/aa.jpg");
// byte[] bitmapArray = Base64.decode(bitmapData, Base64.DEFAULT);
// bitmap = BitmapFactory.decodeByteArray(bitmapArray, 0, bitmapArray.length);
// // bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
// return bitmap;
// }
// catch (Exception e)
// {
// return null;
// }
// }
}
任意文件转字符串工具:TransCode.exe
(拖动文件至工具,自动转字符串,用记事本打开)