2.2 的mainmenu默认走buildDrawingCache的else分支,quality等于Bitmap.Config.ARGB_8888 -----------------------------------------
public void buildDrawingCache(boolean autoScale) {
final boolean translucentWindow = attachInfo != null && attachInfo.mTranslucentWindow;
} else {
// Optimization for translucent windows
// If the window is translucent, use a 32 bits bitmap to benefit from memcpy()
quality = translucentWindow ? Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565;
}
}-----------------------------------------
ViewRoot.java
attachInfo.mTranslucentWindow = lp.format != PixelFormat.OPAQUE;
-----------------------------------------用buildDrawingCache建立缓存时,如何修改程序or设定xml文件,让translucentWindow = Bitmap.Config.RGB_565 ?等待解答,谢谢!
public void buildDrawingCache(boolean autoScale) {
final boolean translucentWindow = attachInfo != null && attachInfo.mTranslucentWindow;
} else {
// Optimization for translucent windows
// If the window is translucent, use a 32 bits bitmap to benefit from memcpy()
quality = translucentWindow ? Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565;
}
}-----------------------------------------
ViewRoot.java
attachInfo.mTranslucentWindow = lp.format != PixelFormat.OPAQUE;
-----------------------------------------用buildDrawingCache建立缓存时,如何修改程序or设定xml文件,让translucentWindow = Bitmap.Config.RGB_565 ?等待解答,谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货