码迷,mamicode.com
首页 > 移动开发 > 详细

android Dialog&AlertDialog

时间:2016-09-09 16:55:39      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:

Dialog dialog = new Dialog(context,R.style.AppBaseTheme);  
        
        wifiView = AppData.inflater.inflate(R.layout.wifi_ip_info_form, null);
        dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
        dialog.setContentView(wifiView); 
        /*
        Window dialogWindow = dialog.getWindow();
        //getActivity().getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
                //WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
 
        dialogWindow.setLayout(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT);
        dialogWindow.setGravity(Gravity.TOP);
        dialog.show();*/
        dialog.show();

 

android Dialog&AlertDialog

标签:

原文地址:http://www.cnblogs.com/mypsq/p/5857097.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!