Home > Mobile > Android8.0 system drawBitmap will become a card on your mobile phone
Android8.0 system drawBitmap will become a card on your mobile phone
Time:11-16
When doing the Android8.0 system adaptation recently discovered a problem, 8.0 system in drawBitmap on your mobile phone, exceed certain limit when the size of the Image (found the problem size is 512 * 256), and draw a lot (usually cycle), will become very card, a frame of two frames, if drawn only once, so frames is not too big change, basic didn't make much difference, but once in circulation, frames immediately down,
for (int I=0; i <4. + + I) { For (int j=0; J & lt; 5; + + j) { //packaging function, finally is drawBitmap (Bitmap Bitmap, float left, float top, Paint Paint) Tools. DrawImage (g, imgTest, 10 * I, 10 * j); } }
Do you have a great god met? Or know is what circumstance, please discuss to solve! Only in mobile phones will be more than 8.0, the same code, 7.0 the following mobile phones running smoothly,
CodePudding user response:
You a log to see specific drew a few times, I feel more than 20 times
CodePudding user response:
Refer to https://issuetracker.google.com/issues/64882137 Seems to be a bug of android 8.0, can try to install the latest patches or upgrade to 8.1