This source showed DialogFragment created new Fragment and blocked all screen (FragmentActivity). I need to add a Dialog in the Fragment so that when I can scroll the screen and the DialogFragment will not interfere. Current code:
FragmentManager fm = fa.getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
// create dlg fragment
DialogFragment fragment = new DialogFragment();
// show the dialog.
fragment.show(fm, "android:switcher:888889:1"); // "android:switcher:888889:1" - existing fragment!

A normal
DialogFragment(or normalDialog) will not work for what you want. Insted you could make use of nestedFragments. More precisely you’ll need to modify your currentFragment‘s view from theViewPagerto wrap their current layout with aRelativeLayoutor aFrameLayoutalong with adding another container(aFrameLayout) on top of the content.That extra
FrameLayouton top will be used as aDialogholder(so theDialogwill appear as floating on top of the normal content) and to this container you’ll add aFragmentto represent theDialog(a normalFragment, not aDialogFragment). You’ll then be able to swipe theViewPagereven with your fakeDialogshowing.Also, keep in mind that swiping the
ViewPageralthough aDialogis showing on the screen, might be counter intuitive for the user.