直接上代码不多说:
LayoutInflater inflater = LayoutInflater.from(getActivity()); final View layout = inflater.inflate(R.layout.include_dialog, null); dlg = new AlertDialog.Builder(getActivity()).setView(layout).create(); dlg.show();
直接上代码不多说:
LayoutInflater inflater = LayoutInflater.from(getActivity()); final View layout = inflater.inflate(R.layout.include_dialog, null); dlg = new AlertDialog.Builder(getActivity()).setView(layout).create(); dlg.show();