android 挪动dialog的位置

    Window mWindow = dialog.getWindow();  
    WindowManager.LayoutParams lp = mWindow.getAttributes();  
    lp.x = 10;   //新位置X坐标  
    lp.y = -100; //新位置Y坐标  
    dialog.onWindowAttributesChanged(lp);
原文地址:https://www.cnblogs.com/miaozhenzhong/p/5931045.html