22 lines
527 B
Plaintext
Executable File
22 lines
527 B
Plaintext
Executable File
package com.example.administrator.ximengjianyu.utils;
|
|
|
|
import android.app.Activity;
|
|
import android.app.Dialog;
|
|
import android.view.View;
|
|
import android.view.Window;
|
|
import android.view.WindowManager;
|
|
|
|
/**
|
|
* Created by haifeng on 2018/4/19.
|
|
*/
|
|
|
|
public class MDialog {
|
|
|
|
public Dialog mDialog(Activity mActivity, View view) {
|
|
Dialog dialog = new Dialog(mActivity);
|
|
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
|
dialog.setContentView(view);
|
|
return dialog;
|
|
}
|
|
}
|