使用styles.xml風格:
使用AlertDialog的上層接口類:
- Dialog reNameDialog = new Dialog(getContext(), R.style.FullScreenDialog);
- LayoutInflater mLayoutInflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- View reNameView = mLayoutInflater.inflate(R.layout.audiorecord_rename, null);
- reNameDialog.setContentView(reNameView);
- reNameDialog.show();