游戏评分徽章入口图标优化
This commit is contained in:
@ -43,10 +43,12 @@ public class CenterImageSpan extends ImageSpan {
|
||||
float x, int top, int y, int bottom, Paint paint) {
|
||||
Drawable b = getDrawable();
|
||||
canvas.save();
|
||||
int transY = 0;
|
||||
int transY;
|
||||
transY = ((bottom - top) - b.getBounds().bottom) / 2 + top;
|
||||
canvas.translate(x, transY);
|
||||
b.draw(canvas);
|
||||
if (b.isVisible()) {
|
||||
b.draw(canvas);
|
||||
}
|
||||
canvas.restore();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user