dialog.getWindow().setLayout(200, LayoutParams.WRAP_CONTENT); 转载于:https://www.cnblogs.com/daxin/p/5057429.html