BarGraph creates bitmap very slowly
Bitmap.createBitmap(getWidth(), getHeight(), Config.ARGB_8888);
in bargraph.java is used in the intermediary Canvas canvas before being drawn on the canvas ca from onDraw(Canvas ca). This was probably done in a noble effort to reduce overdraw. However, the createBitmap function, as well as the copyBitmap function i tried to mitigate this issue, all take a very long time, 25-40 ms on my galaxy s3 for a 200 px tall image. Drawing directly to the onDraw canvas therefore ends up being 10x faster.
Unless there is a compelling reason I'm not seeing, the graph should be drawn directly on Canvas ca.