您的位置:首页 > 其它

How to dismiss a DialogFragment when pressing outside the dialog? 怎么通过点击DialogFragment的外部透明隐藏它

2016-10-25 18:10 344 查看
引用:http://stackoverflow.com/questions/8404140/how-to-dismiss-a-dialogfragment-when-pressing-outside-the-dialog
DialogFragment.getDialog().setCanceledOnTouchOutside(true);
 Must be called in 
onCreateView(必须在onCreateView中调用,因为此时dialog才存在,不然空指针)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐