styles

标签: styles

对Dialog添加动画效果

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

阅读全文...