dialogSave.getWindow().setGravity(Gravity.BOTTOM); 参考链接:https://blog.youkuaiyun.com/yjs15234450670/article/details/70232405