Android从内存卡读取Drawable,不用转Bitmap

	/**
	 * 从内存卡读取Drawable的(图)
	 * @author YOLANDA
	 * @param path
	 * @return
	 */
	public static Drawable readDrawableFromSDCard(String path){
		BitmapDrawable bitmapDrawable = null;
		try{
			bitmapDrawable = (BitmapDrawable) BitmapDrawable.createFromPath(path);
		}catch (OutOfMemoryError oom) {
			System.gc();
		}
		return bitmapDrawable;
	}

你可能感兴趣的:(Android从内存卡读取Drawable,不用转Bitmap)