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();
时间: 2024-11-05 12:07:02