首页 > 代码库 > android Dialog&AlertDialog

android Dialog&AlertDialog

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