@Override
protected void onDraw(Canvas canvas) {
+ // draw operable Rects
+ Paint opRect = new Paint();
+ opRect.setARGB(50, 240, 248, 255);
+ for (int i = 0; i < opcol.length; i++) {
+ if (i == opcol.length - 1) {
+ canvas.drawRect(width * opcol[i], height, width
+ * (opcol[i] + 1), height * (row + 1), opRect);
+ } else {
+ canvas.drawRect(width * opcol[i], height, width
+ * (opcol[i] + 1), height * row, opRect);
+ }
+ }
+
// draw matrix line
Paint line = new Paint();
line.setColor(Color.GRAY);