Example usage for android.support.v4.app BaseDialogFragment show

List of usage examples for android.support.v4.app BaseDialogFragment show

Introduction

In this page you can find the example usage for android.support.v4.app BaseDialogFragment show.

Prototype

@Override
    public int show(FragmentTransaction transaction, String tag) 

Source Link

Usage

From source file:tad.g730.mmfi.dialogs.BaseDialogBuilder.java

public DialogFragment show() {
    final Bundle args = prepareArguments();

    final BaseDialogFragment fragment = (BaseDialogFragment) Fragment.instantiate(mContext, mClass.getName(),
            args);/* w  w  w .ja v a2  s. c  om*/

    args.putBoolean(ARG_CANCELABLE_ON_TOUCH_OUTSIDE, mCancelableOnTouchOutside);

    if (mTargetFragment != null) {
        fragment.setTargetFragment(mTargetFragment, mRequestCode);
    } else {
        args.putInt(ARG_REQUEST_CODE, mRequestCode);
    }
    fragment.setCancelable(mCancelable);
    fragment.show(mFragmentManager, mTag);

    return fragment;
}