Dialog mDialog = new AlertDialog.Builder(context).create(); WindowManager.LayoutParams param = mDialog.getWindow().getAttributes(); param.windowAnimations = R.style.dialog_exit; mDialog.show(); 在styles里面设置style dialog.exit @anim/in_translate_top @anim/out_translate_top in_translate_top.xml out_translate_top.xml
styles
标签: styles