2016年8月11日 星期四

dialog Fragment

25.How to create a dialog Fragment?
ref:https://guides.codepath.com/android/Using-DialogFragment


26 How to remove the  dialog Fragment title?
in the Dialog Fragment

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
 Dialog dialog = super.onCreateDialog(savedInstanceState);

 // request a window without the title
 dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
 return dialog;

}