最赞回答 / 老王哥哥
你的drawPieces方法,就是绘制棋子的方法中,canvas.drawBitmap的参数不对,1 - ratioPieceOfLineHeight) / 2这部分没有放到括号里吧?放到括号里在乘以mLineHeight。完整的这一句是:canvas.drawBitmap(whitePiece, (whitePoint.x + (1 - ratioPieceOfLineHeight) / 2) * mLineHeight, (whitePoint.y + (1 - ratioPieceOfLineHei...
2016-04-07