Code example for DialogFragment

0
    private boolean[] mEnabled;
 
    private EnabledOkListener mListener;
 
    public EnablesDialog() { 
        super(); 
        mEnabled = new boolean[3];
        mEnabled[0] = true;
        mEnabled[1] = true;
        mEnabled[2] = false;
    } 
 
    public EnablesDialog(boolean drag, boolean sort, boolean remove) {
        super(); 
        mEnabled = new boolean[3];
        mEnabled[0] = drag;
        mEnabled[1] = sort;
        mEnabled[2] = remove;
    } 
 
    public interface EnabledOkListener {