10
Android View.getDrawingCache trả về null, chỉ null
Có ai vui lòng giải thích cho tôi tại sao không public void addView(View child) { child.setDrawingCacheEnabled(true); child.setWillNotCacheDrawing(false); child.setWillNotDraw(false); child.buildDrawingCache(); if(child.getDrawingCache() == null) { //TODO Make this work! Log.w("View", "View child's drawing cache is null"); } setImageBitmap(child.getDrawingCache()); //TODO MAKE THIS WORK!!! } LUÔN LUÔN ghi lại rằng bộ nhớ cache …