发布时间:2014-09-27 15:30:54
做android对大图片加载常会出现out of memory,其实在这么小的屏幕上可以不要这么高精度而大的图。下面引用google的android文档中的方法,也是最好的方法了点击(此处)折叠或打开public static int calculateInSampleSize(&n.........【阅读全文】
发布时间:2013-09-17 11:42:00
转http://blog.csdn.net/lquanshui/article/details/8235824java.lang.IllegalArgumentException: Cannot draw recycled bitmapsat android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:778)at android.view.GLES20RecordingCanvas.drawBitmap(GLES20RecordingCanvas.java:117)at android.graphics.drawable.Bitmap.........【阅读全文】
发布时间:2013-07-26 12:50:53
点击(此处)折叠或打开TextView t; Animation a; //ObjectAnimator anim; AnimatorSet set = new AnimatorSet(); @Override.........【阅读全文】
发布时间:2013-02-27 15:32:14
点击(此处)折叠或打开public static Bitmap drawableToBitmap (Drawable drawable) { if (drawable instanceof BitmapDrawable) { return ((BitmapDrawable)drawable).getBitmap();.........【阅读全文】