仅在某些三星设备上转载android:hardwareAccelerated =“true”标志,例如galaxy s4。无法在nexus4,nexus5,motorola razr和模拟器上重现。有时在内部列表视图的大水平滚动视图中崩溃。没有我在stacktrace中的代码,只有android.view。*和android.graphics。*
Logcat:
6-15 09:10:24.570: W/dalvikvm(7993): threadid=1: thread exiting with uncaught exception (group=0x41856ac8)
06-15 09:10:24.570: W/System.err(7993): java.lang.ArrayIndexOutOfBoundsException: length=7; index=48
06-15 09:10:24.570: W/System.err(7993): at android.graphics.Bitmap$Config.nativeToConfig(Bitmap.java:378)
06-15 09:10:24.570: W/System.err(7993): at android.graphics.Bitmap.getConfig(Bitmap.java:1037)
06-15 09:10:24.570: W/System.err(7993): at android.view.GLES20Canvas.setupModifiers(GLES20Canvas.java:1347)
06-15 09:10:24.570: W/System.err(7993): at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:791)
06-15 09:10:24.580: W/System.err(7993): at android.view.GLES20RecordingCanvas.drawBitmap(GLES20RecordingCanvas.java:118)
06-15 09:10:24.580: W/System.err(7993): at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:399)
06-15 09:10:24.580: W/System.err(7993): at android.widget.ImageView.onDraw(ImageView.java:1008)
06-15 09:10:24.580: W/System.err(7993): at android.view.View.draw(View.java:14180)
06-15 09:10:24.580: W/System.err(7993): at android.view.View.getDisplayList(View.java:13118)
06-15 09:10:24.580: W/System.err(7993): at android.view.View.getDisplayList(View.java:13162)
...