canvas.drawLine(10, 10, 10, canvas.getHeight(), paint);
canvas.drawLine(0, canvas.getHeight(), 100, canvas.getHeight(), paint);
//the vertical line can see, but the level line disappear,at first I thought it's because the length ,so I minus 30 on length,but it's the same
canvas.drawLine(0, canvas.getHeight()-30, 100, canvas.getHeight()-30, paint);
我将在其中放入图像,但它超出了屏幕范围。视图是继承和覆盖onDraw
方法。我试过设置默认背景,高度也在屏幕外。
有人可以帮我吗?