@@ -0,0 +1,875 @@
+/**   %0A * @Title: DrawableUtil.java %0A * @Package me.pc.mobile.helper.util %0A * @Description: TODO%0A * @author SilentKnight %7C%7C happychinapc%5Bat%5Dgmail%5Bdot%5Dcom   %0A * @date 2014 2014%E5%B9%B411%E6%9C%8828%E6%97%A5 %E4%B8%8A%E5%8D%8811:39:29 %0A * @version V1.0.0   %0A */%0Apackage me.pc.mobile.helper.v14.util;%0A%0Aimport android.graphics.Bitmap;%0Aimport android.graphics.drawable.BitmapDrawable;%0Aimport android.graphics.drawable.Drawable;%0A%0A/**%0A * @ClassName: DrawableUtil%0A * @Description: TODO%0A * @author SilentKnight %7C%7C happychinapc@gmail.com%0A * @date 2014%E5%B9%B411%E6%9C%8828%E6%97%A5 %E4%B8%8A%E5%8D%8811:39:29%0A * %0A */%0Apublic final class BitDrawableUtil %7B%0A%09private BitDrawableUtil() %7B%0A%09%7D%0A%0A%09public static Drawable from(Bitmap bitmap) %7B%0A%09%09BitmapDrawable bitDrawable = new BitmapDrawable(bitmap);%0A%09%09return bitDrawable;%0A%09%7D%0A%0A%09public static Bitmap from(Drawable drawable) %7B%0A%09%09BitmapDrawable bitDrawable = (BitmapDrawable) drawable;%0A%09%09return bitDrawable.getBitmap();%0A%09%7D%0A%7D%0A

Create BitDrawableUtil.java