移动原点,默认的原点(0,0)是在屏幕左上角的,你可以通过translate(x,y)把点(x,y)作为原点

解决方案 »

  1.   

    public void translate (float dx, float dy)
    Since: API Level 1Preconcat the current matrix with the specified translation
    Parameters
    dx  The distance to translate in X
    dy  The distance to translate in Y 
    有些方法不清楚的可以去查SDK,里面都有详细介绍,是个很好的资源,要学会使用,会很有帮助的!
    路径:android-sdk-windows\docs\search.html